RTC_DCHECK() is used in place of assert().
BUG=webrtc:7222 Review-Url: https://codereview.webrtc.org/2715893002 Cr-Commit-Position: refs/heads/master@{#17686}
This commit is contained in:
parent
38c65c8fb4
commit
1946be4bb2
@ -39,8 +39,8 @@ FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice(
|
||||
void FileAudioDeviceFactory::SetFilenamesToUse(
|
||||
const char* inputAudioFilename, const char* outputAudioFilename) {
|
||||
#ifdef WEBRTC_DUMMY_FILE_DEVICES
|
||||
assert(strlen(inputAudioFilename) < MAX_FILENAME_LEN &&
|
||||
strlen(outputAudioFilename) < MAX_FILENAME_LEN);
|
||||
RTC_DCHECK(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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user