Index: content/renderer/media/media_stream_audio_processor_options.cc |
diff --git a/content/renderer/media/media_stream_audio_processor_options.cc b/content/renderer/media/media_stream_audio_processor_options.cc |
index d7e773d723df632740da1f33354687947630876d..537ef908b14a9e65f0773a95e2948354c11815b2 100644 |
--- a/content/renderer/media/media_stream_audio_processor_options.cc |
+++ b/content/renderer/media/media_stream_audio_processor_options.cc |
@@ -326,10 +326,15 @@ void EnableTypingDetection(AudioProcessing* audio_processing, |
void StartEchoCancellationDump(AudioProcessing* audio_processing, |
base::File aec_dump_file) { |
DCHECK(aec_dump_file.IsValid()); |
- if (audio_processing->StartDebugRecordingForPlatformFile( |
- aec_dump_file.TakePlatformFile())) { |
- DLOG(ERROR) << "Fail to start AEC debug recording"; |
+ |
+ FILE* stream = base::FileToFILE(aec_dump_file.Pass(), "w"); |
+ if (!stream) { |
+ LOG(ERROR) << "Failed to open AEC dump file"; |
+ return; |
} |
+ |
+ if (audio_processing->StartDebugRecording(stream)) |
+ DLOG(ERROR) << "Fail to start AEC debug recording"; |
} |
void StopEchoCancellationDump(AudioProcessing* audio_processing) { |