summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/media_uitest.cc6
-rw-r--r--chrome/renderer/media/audio_renderer_impl.cc6
2 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/media_uitest.cc b/chrome/browser/media_uitest.cc
index 41b949c..60360e6 100644
--- a/chrome/browser/media_uitest.cc
+++ b/chrome/browser/media_uitest.cc
@@ -50,10 +50,8 @@ class MediaTest : public UITest {
// <video> and <audio> only works stably on Windows.
#if defined(OS_WIN)
-// TODO(hclam): The following test is disabled because it contains audio and
-// this test doesn't work with audio device.
-TEST_F(MediaTest, DISABLED_VideoBearH264) {
- PlayVideo("bear.mp4");
+TEST_F(MediaTest, VideoBearTheora) {
+ PlayVideo("bear.ogv");
}
TEST_F(MediaTest, VideoBearSilentTheora) {
diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc
index c64c432..6af48a0 100644
--- a/chrome/renderer/media/audio_renderer_impl.cc
+++ b/chrome/renderer/media/audio_renderer_impl.cc
@@ -194,7 +194,11 @@ void AudioRendererImpl::OnStateChanged(AudioOutputStream::State state,
switch (state) {
case AudioOutputStream::STATE_ERROR:
- host()->SetError(media::PIPELINE_ERROR_AUDIO_HARDWARE);
+ // We receive this error if we counter an hardware error on the browser
+ // side. We can proceed with ignoring the audio stream.
+ // TODO(hclam): We need more handling of these kind of error. For example
+ // re-try creating the audio output stream on the browser side or fail
+ // nicely and report to demuxer that the whole audio stream is discarded.
break;
// TODO(hclam): handle these events.
case AudioOutputStream::STATE_STARTED: