Commit 81b32206 authored by Jie Dai's avatar Jie Dai Committed by Commit Bot

Don't set audio renderer algorithm when streaming video

Bug: b/136496918
Change-Id: Icce31ca74fb93d94553ef35bf9164192dddb71af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894051
Auto-Submit: Jie Dai <jied@google.com>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Commit-Queue: Jie Dai <jied@google.com>
Cr-Commit-Position: refs/heads/master@{#711513}
parent 8e350094
......@@ -625,7 +625,7 @@ void AudioRendererImpl::OnAudioDecoderStreamInitialized(bool success) {
(media_client ? media_client->GetAudioRendererAlgorithmParameters(
audio_parameters_)
: base::nullopt);
if (params) {
if (params && !client_->IsVideoStreamAvailable()) {
algorithm_ = std::make_unique<AudioRendererAlgorithm>(params.value());
} else {
algorithm_ = std::make_unique<AudioRendererAlgorithm>();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment