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

Unified Diff: media/filters/dummy_demuxer.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
« no previous file with comments | « media/filters/dummy_demuxer.h ('k') | media/filters/dummy_demuxer_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/dummy_demuxer.cc
diff --git a/media/filters/dummy_demuxer.cc b/media/filters/dummy_demuxer.cc
index 095ffee762bd5362822987c3805dd272c1c3079c..28decb51ccca2eaef586db3a51558d603549417c 100644
--- a/media/filters/dummy_demuxer.cc
+++ b/media/filters/dummy_demuxer.cc
@@ -32,9 +32,10 @@ void DummyDemuxerStream::Read(const ReadCallback& read_callback) {}
void DummyDemuxerStream::EnableBitstreamConverter() {}
-DummyDemuxer::DummyDemuxer(bool has_video, bool has_audio)
+DummyDemuxer::DummyDemuxer(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) {
streams_.resize(DemuxerStream::NUM_TYPES);
if (has_audio)
streams_[DemuxerStream::AUDIO] =
@@ -60,4 +61,12 @@ base::TimeDelta DummyDemuxer::GetStartTime() const {
return base::TimeDelta();
}
+bool DummyDemuxer::IsLocalSource() {
+ return local_source_;
+}
+
+bool DummyDemuxer::IsSeekable() {
+ return false;
acolwell GONE FROM CHROMIUM 2011/12/01 04:25:00 nit: Might want to add a brief comment here mentio
+}
+
} // namespace media
« no previous file with comments | « media/filters/dummy_demuxer.h ('k') | media/filters/dummy_demuxer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698