Commit b5e2f020 authored by Dale Curtis's avatar Dale Curtis Committed by Commit Bot

Fix order of output device info timeout log to show correct status.

Log in it's current position was logging status after we'd replaced
the sink with a fake device. We need to log the status before we do
that.

BUG=986021
R=sandersd

Change-Id: I27c588e5b5c0445b29d5f5034df0053e98c27a1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1796625
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695291}
parent 6ca932ff
......@@ -406,11 +406,11 @@ void AudioRendererImpl::OnDeviceInfoReceived(
output_device_info.device_status(),
OUTPUT_DEVICE_STATUS_MAX + 1);
if (output_device_info.device_status() != OUTPUT_DEVICE_STATUS_OK) {
sink_ = new NullAudioSink(task_runner_);
output_device_info = sink_->GetOutputDeviceInfo();
MEDIA_LOG(ERROR, media_log_)
<< "Output device error, falling back to null sink. device_status="
<< output_device_info.device_status();
sink_ = new NullAudioSink(task_runner_);
output_device_info = sink_->GetOutputDeviceInfo();
}
current_decoder_config_ = stream->audio_decoder_config();
......
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