Fixing compile error.
Made a mistake in https://webrtc-codereview.appspot.com/13849004/, fixing that here. TBR=henrika@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13859004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6622 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
22292df53b
commit
241a9b0b65
@ -32,18 +32,19 @@ FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice(
|
|||||||
|
|
||||||
void FileAudioDeviceFactory::SetFilenamesToUse(
|
void FileAudioDeviceFactory::SetFilenamesToUse(
|
||||||
const char* inputAudioFilename, const char* outputAudioFilename) {
|
const char* inputAudioFilename, const char* outputAudioFilename) {
|
||||||
#ifndef WEBRTC_DUMMY_FILE_DEVICES
|
#ifdef WEBRTC_DUMMY_FILE_DEVICES
|
||||||
// Sanity: must be compiled with the right define to run this.
|
|
||||||
printf("Trying to use dummy file devices, but is not compiled "
|
|
||||||
"with WEBRTC_DUMMY_FILE_DEVICES. Bailing out.\n");
|
|
||||||
exit(1);
|
|
||||||
#endif
|
|
||||||
assert(strlen(inputAudioFilename) < MAX_FILENAME_LEN &&
|
assert(strlen(inputAudioFilename) < MAX_FILENAME_LEN &&
|
||||||
strlen(outputAudioFilename) < MAX_FILENAME_LEN);
|
strlen(outputAudioFilename) < MAX_FILENAME_LEN);
|
||||||
|
|
||||||
// Copy the strings since we don't know the lifetime of the input pointers.
|
// Copy the strings since we don't know the lifetime of the input pointers.
|
||||||
strncpy(_inputAudioFilename, inputAudioFilename, MAX_FILENAME_LEN);
|
strncpy(_inputAudioFilename, inputAudioFilename, MAX_FILENAME_LEN);
|
||||||
strncpy(_outputAudioFilename, outputAudioFilename, MAX_FILENAME_LEN);
|
strncpy(_outputAudioFilename, outputAudioFilename, MAX_FILENAME_LEN);
|
||||||
|
#else
|
||||||
|
// Sanity: must be compiled with the right define to run this.
|
||||||
|
printf("Trying to use dummy file devices, but is not compiled "
|
||||||
|
"with WEBRTC_DUMMY_FILE_DEVICES. Bailing out.\n");
|
||||||
|
exit(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user