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

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

Issue 2860653003: Have AUAudioInputStream::Stop() also cancel any deferred start. (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | 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 c347e8845cee112cbc5c6c2b97c07cc08121c60d..15640a57ca94816cdef601122bef988982cf6150 100644
--- a/media/audio/mac/audio_low_latency_input_mac.cc
+++ b/media/audio/mac/audio_low_latency_input_mac.cc
@@ -577,6 +577,7 @@ void AUAudioInputStream::Start(AudioInputCallback* callback) {
void AUAudioInputStream::Stop() {
DCHECK(thread_checker_.CalledOnValidThread());
+ deferred_start_cb_.Cancel();
DVLOG(1) << "Stop";
StopAgc();
if (check_alive_timer_ != nullptr) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698