summaryrefslogtreecommitdiffstats
path: root/media/base/audio_renderer_sink.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 20:36:10 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 20:36:10 +0000
commitab34561dd992607626f7b7c7ee06d429de55df04 (patch)
treeec9f032f24ced4f86c4b866de1415cbc977ca7a7 /media/base/audio_renderer_sink.h
parentb492263fad2d811e7d942e63a61ce2f6a3fdfa7c (diff)
downloadchromium_src-ab34561dd992607626f7b7c7ee06d429de55df04.zip
chromium_src-ab34561dd992607626f7b7c7ee06d429de55df04.tar.gz
chromium_src-ab34561dd992607626f7b7c7ee06d429de55df04.tar.bz2
Detect errors in audio output and report them upstream.
Stop feeding audio packets to AUDIO DemuxerStreams once audio has been disabled. BUG=111409 TEST=uninstall pulseaudio, make /dev/snd inaccessible, and observe <video> plays correctly (muted) instead of hanging. Review URL: http://codereview.chromium.org/9234066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/audio_renderer_sink.h')
-rw-r--r--media/base/audio_renderer_sink.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h
index 5888c6b..350210c 100644
--- a/media/base/audio_renderer_sink.h
+++ b/media/base/audio_renderer_sink.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -32,6 +32,9 @@ class AudioRendererSink
size_t number_of_frames,
size_t audio_delay_milliseconds) = 0;
+ // Signals an error has occurred.
+ virtual void OnError() = 0;
+
protected:
virtual ~RenderCallback() {}
};