Commit 84788c80 authored by Ken MacKay's avatar Ken MacKay Committed by Commit Bot

[Chromecast] Fix typo/use of uninitialized data in CastAudioDecoder

Change-Id: I5cf44c3fe015da4f26ec74b2ca717e81900ff8ab
Reviewed-on: https://chromium-review.googlesource.com/1232914Reviewed-by: default avatarLuke Halliwell <halliwell@chromium.org>
Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Commit-Queue: Kenneth MacKay <kmackay@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592268}
parent 95797d79
......@@ -58,7 +58,7 @@ class CastAudioDecoderImpl : public CastAudioDecoder {
DCHECK(task_runner_->RunsTasksInCurrentSequence());
DCHECK(!initialized_);
input_channel_count_ = config_.channel_number;
input_channel_count_ = config.channel_number;
output_channel_layout_ = output_channel_layout;
config_ = config;
if (config.is_encrypted()) {
......@@ -69,7 +69,7 @@ class CastAudioDecoderImpl : public CastAudioDecoder {
// Remix to desired channel layout; update config_ to match what this class
// outputs.
CreateMixerIfNeeded(config_.channel_number);
CreateMixerIfNeeded(input_channel_count_);
config_.channel_number =
::media::ChannelLayoutToChannelCount(output_channel_layout_);
......
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