diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-26 23:49:24 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-26 23:49:24 +0000 |
commit | 92b0417bd59b83f6a4908a6bb19ef833852faf08 (patch) | |
tree | 928d80c5d866f659fe6977f7d8817eeea8319b25 /media/base/pipeline_impl.h | |
parent | 9e717c32ba0e9710d06d2f3fac3a291f3d4e4ec5 (diff) | |
download | chromium_src-92b0417bd59b83f6a4908a6bb19ef833852faf08.zip chromium_src-92b0417bd59b83f6a4908a6bb19ef833852faf08.tar.gz chromium_src-92b0417bd59b83f6a4908a6bb19ef833852faf08.tar.bz2 |
Lots of files touched for a very simple change. Everywhere we used a const MediaFormat* we now
use a const MediaFormat&. This makes for simpler code and for better pointer reference safety.
Review URL: http://codereview.chromium.org/42635
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/pipeline_impl.h')
-rw-r--r-- | media/base/pipeline_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h index a5b8c0e..c4c4393 100644 --- a/media/base/pipeline_impl.h +++ b/media/base/pipeline_impl.h @@ -266,7 +266,7 @@ class PipelineThread : public base::RefCountedThreadSafe<PipelineThread>, template <class Filter, class Source> scoped_refptr<Filter> CreateFilter(FilterFactory* filter_factory, Source source, - const MediaFormat* source_media_format); + const MediaFormat& source_media_format); // Creates a Filter and initilizes it with the given |source|. If a Filter // could not be created or an error occurred, this metod returns NULL and the @@ -278,7 +278,7 @@ class PipelineThread : public base::RefCountedThreadSafe<PipelineThread>, Source* source) { return CreateFilter<Filter, Source*>(filter_factory, source, - source->GetMediaFormat()); + source->media_format()); } // Creates a DataSource (the first filter in a pipeline), and initializes it |