| Index: media/audio/win/audio_low_latency_output_win.cc
|
| diff --git a/media/audio/win/audio_low_latency_output_win.cc b/media/audio/win/audio_low_latency_output_win.cc
|
| index 48332885e75e412a0d27f2cdc8e45eb3a006c2fd..589e312b094cf67eb5553532117fa256eea8fb48 100644
|
| --- a/media/audio/win/audio_low_latency_output_win.cc
|
| +++ b/media/audio/win/audio_low_latency_output_win.cc
|
| @@ -436,11 +436,16 @@ void WASAPIAudioOutputStream::Run() {
|
| }
|
|
|
| if (playing && error) {
|
| + LOG(ERROR) << "WASAPI rendering failed.";
|
| +
|
| // Stop audio rendering since something has gone wrong in our main thread
|
| // loop. Note that, we are still in a "started" state, hence a Stop() call
|
| // is required to join the thread properly.
|
| audio_client_->Stop();
|
| - PLOG(ERROR) << "WASAPI rendering failed.";
|
| +
|
| + // Notify clients that something has gone wrong and that this stream should
|
| + // be destroyed instead of reused in the future.
|
| + source_->OnError(this);
|
| }
|
|
|
| // Disable MMCSS.
|
|
|