summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorphoglund@webrtc.org <phoglund@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-08 11:48:37 +0000
committerphoglund@webrtc.org <phoglund@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-08 11:48:37 +0000
commit4109f65a3a84098c1ad925d0a40035fc8279350c (patch)
tree6a0447f879934fd78aa94bc26a6785c1f16afed9 /modules
parent6014599161bd0f45e0b5901937af9206993f53a3 (diff)
downloadwebrtc-4109f65a3a84098c1ad925d0a40035fc8279350c.tar.gz
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/webrtc@6622 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'modules')
-rw-r--r--modules/audio_device/dummy/file_audio_device_factory.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/audio_device/dummy/file_audio_device_factory.cc b/modules/audio_device/dummy/file_audio_device_factory.cc
index 8c276f3e..5e252305 100644
--- a/modules/audio_device/dummy/file_audio_device_factory.cc
+++ b/modules/audio_device/dummy/file_audio_device_factory.cc
@@ -32,18 +32,19 @@ FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice(
void FileAudioDeviceFactory::SetFilenamesToUse(
const char* inputAudioFilename, const char* outputAudioFilename) {
-#ifndef 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
+#ifdef WEBRTC_DUMMY_FILE_DEVICES
assert(strlen(inputAudioFilename) < MAX_FILENAME_LEN &&
strlen(outputAudioFilename) < MAX_FILENAME_LEN);
// Copy the strings since we don't know the lifetime of the input pointers.
strncpy(_inputAudioFilename, inputAudioFilename, 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