Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Unified Diff: media/filters/dummy_demuxer_factory.cc

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/dummy_demuxer_factory.cc
diff --git a/media/filters/dummy_demuxer_factory.cc b/media/filters/dummy_demuxer_factory.cc
index 37495e89aded4e6ad3d84637984dc23667aeb49b..735cf59e7ad14fec7847a29e6317e87107f6a0de 100644
--- a/media/filters/dummy_demuxer_factory.cc
+++ b/media/filters/dummy_demuxer_factory.cc
@@ -9,9 +9,12 @@
namespace media {
-DummyDemuxerFactory::DummyDemuxerFactory(bool has_video, bool has_audio)
+DummyDemuxerFactory::DummyDemuxerFactory(bool has_video,
+ bool has_audio,
+ bool local_source)
: has_video_(has_video),
- has_audio_(has_audio) {
+ has_audio_(has_audio),
+ local_source_(local_source) {
}
DummyDemuxerFactory::~DummyDemuxerFactory() {}
@@ -19,12 +22,12 @@ DummyDemuxerFactory::~DummyDemuxerFactory() {}
void DummyDemuxerFactory::Build(const std::string& url,
const BuildCallback& cb) {
scoped_refptr<DummyDemuxer> demuxer =
- new DummyDemuxer(has_video_, has_audio_);
+ new DummyDemuxer(has_video_, has_audio_, local_source_);
cb.Run(PIPELINE_OK, demuxer.get());
}
DemuxerFactory* DummyDemuxerFactory::Clone() const {
- return new DummyDemuxerFactory(has_video_, has_audio_);
+ return new DummyDemuxerFactory(has_video_, has_audio_, local_source_);
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698