summaryrefslogtreecommitdiffstats
path: root/media/base/pipeline_impl.cc
diff options
context:
space:
mode:
authorkylep@chromium.org <kylep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 23:06:35 +0000
committerkylep@chromium.org <kylep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 23:06:35 +0000
commitfc367afd6b623545150fe601e0316a08e992e731 (patch)
treefbc9084aac79436470af96bda0c15af75be522e0 /media/base/pipeline_impl.cc
parenta9840e58da8bb8f462204503c3d86ad65bfee1e8 (diff)
downloadchromium_src-fc367afd6b623545150fe601e0316a08e992e731.zip
chromium_src-fc367afd6b623545150fe601e0316a08e992e731.tar.gz
chromium_src-fc367afd6b623545150fe601e0316a08e992e731.tar.bz2
Framework to display disabled mute button when audio fails.
BUG=18970 TEST=play a video with no audio hardware, verify that UI changes Review URL: http://codereview.chromium.org/169010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23491 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/pipeline_impl.cc')
-rw-r--r--media/base/pipeline_impl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index b9ac047..61f6344 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -688,6 +688,11 @@ void PipelineImpl::NotifyEndedTask() {
void PipelineImpl::BroadcastMessageTask(FilterMessage message) {
DCHECK_EQ(MessageLoop::current(), message_loop_);
+ // TODO(kylep): This is a horribly ugly hack, but we have no better way to log
+ // that audio is not and will not be working.
+ if (message == media::kMsgDisableAudio)
+ rendered_mime_types_.erase(mime_type::kMajorTypeAudio);
+
// Broadcast the message to all filters.
for (FilterVector::iterator iter = filters_.begin();
iter != filters_.end();