summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/media/audio_renderer_impl.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 23:10:42 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-06 23:10:42 +0000
commite0111a1986e2bc833ec44e789a9b319eb7986c58 (patch)
treeaa78616ff42e91e6072a1d38e93fd46f2c4508fd /chrome/renderer/media/audio_renderer_impl.cc
parenta91ba0e491757bddf03e8032f9f3f18954b7ac38 (diff)
downloadchromium_src-e0111a1986e2bc833ec44e789a9b319eb7986c58.zip
chromium_src-e0111a1986e2bc833ec44e789a9b319eb7986c58.tar.gz
chromium_src-e0111a1986e2bc833ec44e789a9b319eb7986c58.tar.bz2
Detach media filters from WebMediaPlayerDelegateImpl
During stopping of the media pipeline in chrome, we need to detach the filters from WebMediaPlayerDelegateImpl so it doesn't hold renferences to the filters and filters can be destructed by the pipeline. Review URL: http://codereview.chromium.org/60113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/media/audio_renderer_impl.cc')
-rw-r--r--chrome/renderer/media/audio_renderer_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc
index 9276b0e..a0b6ae3 100644
--- a/chrome/renderer/media/audio_renderer_impl.cc
+++ b/chrome/renderer/media/audio_renderer_impl.cc
@@ -55,6 +55,7 @@ bool AudioRendererImpl::OnInitialize(const media::MediaFormat& media_format) {
}
void AudioRendererImpl::OnStop() {
+ delegate_->SetAudioRenderer(NULL);
if (!resource_release_event_.IsSignaled()) {
render_loop_->PostTask(FROM_HERE,
NewRunnableMethod(this,