diff options
author | ralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-06 20:27:51 +0000 |
---|---|---|
committer | ralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-06 20:27:51 +0000 |
commit | ea8395df79a1585f765946a002676cf2bf1c65c5 (patch) | |
tree | 3bd886fe009ab4f9591aef43a4982504a39d6c1f /media/base/mock_pipeline.h | |
parent | f6ea4733ac52a29238825efcfe07d9b7a33a63d0 (diff) | |
download | chromium_src-ea8395df79a1585f765946a002676cf2bf1c65c5.zip chromium_src-ea8395df79a1585f765946a002676cf2bf1c65c5.tar.gz chromium_src-ea8395df79a1585f765946a002676cf2bf1c65c5.tar.bz2 |
Pipeline_Impl was modified to properly render a stream that has video but no audio. A unit test accompanies the change.
Note that one minor other change was snuck in with this change. The data_source_impl.cc had a TODO to set a more specific error
when a read failed. Because I was already updating the pipeline error enum, I added the error code, changed the call to
host_->Error(), and removed the TODO.
Review URL: http://codereview.chromium.org/39170
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/mock_pipeline.h')
-rw-r--r-- | media/base/mock_pipeline.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/base/mock_pipeline.h b/media/base/mock_pipeline.h index 8741cc2..d320301 100644 --- a/media/base/mock_pipeline.h +++ b/media/base/mock_pipeline.h @@ -74,6 +74,10 @@ class MockPipeline : public media::Pipeline { return error_; } + virtual bool IsRendered(const std::string&) const { + return true; + } + // Implementation of Pipeline interface. virtual bool Start(FilterFactory* filter_factory, const std::string& url, |