summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmediaplayer_impl.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-02 20:15:57 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-02 20:15:57 +0000
commit00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1 (patch)
treeeb61d6402a5e967e5eb1d41dfde730af48dfa55f /webkit/glue/webmediaplayer_impl.cc
parentd9b888cdf9ad654a3f2e5c22b935e68db77a71ef (diff)
downloadchromium_src-00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1.zip
chromium_src-00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1.tar.gz
chromium_src-00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1.tar.bz2
Convert implicit scoped_refptr constructor calls to explicit ones, part 2
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2826041 I then did quite a bit of manual editing to fix style issues. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.cc')
-rw-r--r--webkit/glue/webmediaplayer_impl.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/webkit/glue/webmediaplayer_impl.cc b/webkit/glue/webmediaplayer_impl.cc
index 019a664..21a083d 100644
--- a/webkit/glue/webmediaplayer_impl.cc
+++ b/webkit/glue/webmediaplayer_impl.cc
@@ -284,10 +284,14 @@ WebMediaPlayerImpl::WebMediaPlayerImpl(
}
// Add in the default filter factories.
- filter_collection_.push_back(new media::FFmpegDemuxer());
- filter_collection_.push_back(new media::FFmpegAudioDecoder());
- filter_collection_.push_back(new media::FFmpegVideoDecoder(NULL));
- filter_collection_.push_back(new media::NullAudioRenderer());
+ filter_collection_.push_back(make_scoped_refptr(
+ new media::FFmpegDemuxer()));
+ filter_collection_.push_back(make_scoped_refptr(
+ new media::FFmpegAudioDecoder()));
+ filter_collection_.push_back(make_scoped_refptr(
+ new media::FFmpegVideoDecoder(NULL)));
+ filter_collection_.push_back(make_scoped_refptr(
+ new media::NullAudioRenderer()));
}
WebMediaPlayerImpl::~WebMediaPlayerImpl() {