Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: content/renderer/media/audio_renderer_impl.cc

Issue 9234066: Detect errors in audio output and report them upstream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..bcde09288b2838a8449b09b9bb1758dba9e20e14 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,8 @@ size_t AudioRendererImpl::Render(const std::vector<float*>& audio_data,
}
return filled_frames;
}
+
+void AudioRendererImpl::OnError() {
+ if (host())
scherkus (not reviewing) 2012/01/26 21:46:13 nit: according to the superclass host() should alw
Ami GONE FROM CHROMIUM 2012/01/26 22:11:01 Done. I wonder why we have these checks sprinkled,
scherkus (not reviewing) 2012/01/26 22:28:09 AFAIK demuxers can execute w/o having a host prese
+ host()->DisableAudioRenderer();
+}

Powered by Google App Engine
This is Rietveld 408576698