Skip to content

Commit

Permalink
Have AUAudioInputStream::Stop() also cancel any deferred start.
Browse files Browse the repository at this point in the history
BUG=160920
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2860653003
Cr-Commit-Position: refs/heads/master@{#469296}
  • Loading branch information
ossu authored and Commit bot committed May 4, 2017
1 parent d463bb0 commit 810fd10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions media/audio/mac/audio_low_latency_input_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 810fd10

Please sign in to comment.