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

Unified Diff: media/filters/dummy_demuxer.h

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.h
diff --git a/media/filters/dummy_demuxer.h b/media/filters/dummy_demuxer.h
index 309ddedb3c409c48f84f1c4b04abe25c70c0a8d9..bf371c5ec39442b808fc69de4ee90364f3448b6a 100644
--- a/media/filters/dummy_demuxer.h
+++ b/media/filters/dummy_demuxer.h
@@ -4,7 +4,8 @@
// Implements the Demuxer interface. DummyDemuxer returns corresponding
// DummyDemuxerStream as signal for media pipeline to construct correct
-// playback channels.
+// playback channels. Used in WebRTC local video capture pipeline, where
+// demuxing is not needed.
#ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_
#define MEDIA_FILTERS_DUMMY_DEMUXER_H_
@@ -40,7 +41,7 @@ class DummyDemuxerStream : public DemuxerStream {
class DummyDemuxer : public Demuxer {
public:
- DummyDemuxer(bool has_video, bool has_audio);
+ DummyDemuxer(bool has_video, bool has_audio, bool local_source);
virtual ~DummyDemuxer();
// Demuxer implementation.
@@ -49,10 +50,13 @@ class DummyDemuxer : public Demuxer {
virtual void SetPreload(Preload preload) OVERRIDE;
virtual base::TimeDelta GetStartTime() const OVERRIDE;
virtual int GetBitrate() OVERRIDE;
+ virtual bool IsLocalSource() OVERRIDE;
+ virtual bool IsSeekable() OVERRIDE;
private:
bool has_video_;
bool has_audio_;
+ bool local_source_;
std::vector< scoped_refptr<DummyDemuxerStream> > streams_;
DISALLOW_COPY_AND_ASSIGN(DummyDemuxer);

Powered by Google App Engine
This is Rietveld 408576698