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

Unified Diff: media/base/demuxer.h

Issue 523283002: media: Introduce DemuxerStreamProvider interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 3 months 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/base/BUILD.gn ('k') | media/base/demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 4e0891f11906293b0dc5a06a5a9f9ab07f31e843..3968add1bf77799ea01386366bcd98229e68a774 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -10,6 +10,7 @@
#include "base/time/time.h"
#include "media/base/data_source.h"
#include "media/base/demuxer_stream.h"
+#include "media/base/demuxer_stream_provider.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
@@ -42,14 +43,8 @@ class MEDIA_EXPORT DemuxerHost {
virtual ~DemuxerHost();
};
-class MEDIA_EXPORT Demuxer {
+class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider {
public:
- enum Liveness {
- LIVENESS_UNKNOWN,
- LIVENESS_RECORDED,
- LIVENESS_LIVE,
- };
-
// A new potentially encrypted stream has been parsed.
// First parameter - The type of initialization data.
// Second parameter - The initialization data associated with the stream.
@@ -78,18 +73,11 @@ class MEDIA_EXPORT Demuxer {
// method (including Stop()) after a demuxer has stopped.
virtual void Stop() = 0;
- // Returns the first stream of the given stream type (which is not allowed
- // to be DemuxerStream::TEXT), or NULL if that type of stream is not present.
- virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
-
// Returns Time represented by presentation timestamp 0.
// If the timstamps are not associated with a Time, then
// a null Time is returned.
virtual base::Time GetTimelineOffset() const = 0;
- // Returns liveness of the stream, i.e. whether it is recorded or live.
- virtual Liveness GetLiveness() const = 0;
-
private:
DISALLOW_COPY_AND_ASSIGN(Demuxer);
};
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698