Index: content/renderer/media/audio_renderer_impl.cc |
diff --git a/content/renderer/media/audio_renderer_impl.cc b/content/renderer/media/audio_renderer_impl.cc |
index eb541867fc39434c80ac6ede4e94a25abe6b2883..a643fe7e96511015d2b637f669f4450100154e60 100644 |
--- a/content/renderer/media/audio_renderer_impl.cc |
+++ b/content/renderer/media/audio_renderer_impl.cc |
@@ -14,6 +14,7 @@ |
#include "content/renderer/render_thread_impl.h" |
#include "media/audio/audio_buffers_state.h" |
#include "media/audio/audio_util.h" |
+#include "media/base/filter_host.h" |
// We define GetBufferSizeForSampleRate() instead of using |
// GetAudioHardwareBufferSize() in audio_util because we're using |
@@ -247,3 +248,7 @@ size_t AudioRendererImpl::Render(const std::vector<float*>& audio_data, |
} |
return filled_frames; |
} |
+ |
+void AudioRendererImpl::OnError() { |
+ host()->DisableAudioRenderer(); |
+} |