Skip to content

Commit

Permalink
Update audio renderer to stop transcribing muted audio
Browse files Browse the repository at this point in the history
Bug: 1107940
Change-Id: I10b1790f120af7470086bf47709c145e788acbf9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2477477
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Evan Liu <evliu@google.com>
Cr-Commit-Position: refs/heads/master@{#817776}
  • Loading branch information
evliu-google authored and Commit Bot committed Oct 16, 2020
1 parent 085be8a commit 5ca11b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/renderers/audio_renderer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ bool AudioRendererImpl::HandleDecodedBuffer_Locked(
first_packet_timestamp_ = buffer->timestamp();

#if !defined(OS_ANDROID)
if (transcribe_audio_callback_)
if (transcribe_audio_callback_ && volume_ > 0)
transcribe_audio_callback_.Run(buffer);
#endif

Expand Down

0 comments on commit 5ca11b3

Please sign in to comment.