Index: chrome/renderer/render_view.cc |
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc |
index 9b0a283c2b0ff4289bd6aa94f05cd8cd07f420f6..132b967dd7f0b209d5bfa155a7bbb204ad12df36 100644 |
--- a/chrome/renderer/render_view.cc |
+++ b/chrome/renderer/render_view.cc |
@@ -2630,7 +2630,7 @@ WebMediaPlayer* RenderView::createMediaPlayer( |
const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
if (!cmd_line->HasSwitch(switches::kDisableAudio)) { |
// Add the chrome specific audio renderer. |
- collection->AddFilter(new AudioRendererImpl(audio_message_filter())); |
+ collection->AddAudioRenderer(new AudioRendererImpl(audio_message_filter())); |
} |
if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) && |
@@ -2646,7 +2646,7 @@ WebMediaPlayer* RenderView::createMediaPlayer( |
// lost. |
bool ret = context->makeContextCurrent(); |
CHECK(ret) << "Failed to switch context"; |
- collection->AddFilter(new IpcVideoDecoder( |
+ collection->AddVideoDecoder(new IpcVideoDecoder( |
MessageLoop::current(), context->context())); |
} |
@@ -2677,7 +2677,7 @@ WebMediaPlayer* RenderView::createMediaPlayer( |
bool pts_logging = cmd_line->HasSwitch(switches::kEnableVideoLogging); |
scoped_refptr<webkit_glue::VideoRendererImpl> renderer( |
new webkit_glue::VideoRendererImpl(pts_logging)); |
- collection->AddFilter(renderer); |
+ collection->AddVideoRenderer(renderer); |
video_renderer = renderer; |
return new webkit_glue::WebMediaPlayerImpl( |