Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: media/audio/mac/audio_low_latency_input_mac.cc

Issue 621093002: Clear the FIFO when calling input stream::Stop() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed alsa Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/pulse/pulse_input.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_low_latency_input_mac.cc
diff --git a/media/audio/mac/audio_low_latency_input_mac.cc b/media/audio/mac/audio_low_latency_input_mac.cc
index 3d95f90c8ab118cba1cce793a156008f8a468e8f..1baa09f1fe07f0e2b4d5a89c017eaf53c8a23247 100644
--- a/media/audio/mac/audio_low_latency_input_mac.cc
+++ b/media/audio/mac/audio_low_latency_input_mac.cc
@@ -286,6 +286,7 @@ void AUAudioInputStream::Stop() {
DCHECK_EQ(result, noErr);
started_ = false;
sink_ = NULL;
+ fifo_.Clear();
OSSTATUS_DLOG_IF(ERROR, result != noErr, result)
<< "Failed to stop acquiring data";
« no previous file with comments | « no previous file | media/audio/pulse/pulse_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698