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

Unified Diff: media/mojo/services/mojo_demuxer_stream_adapter.h

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: Updated comments + dchecks in ffmpeg demux stream Created 4 years, 7 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
Index: media/mojo/services/mojo_demuxer_stream_adapter.h
diff --git a/media/mojo/services/mojo_demuxer_stream_adapter.h b/media/mojo/services/mojo_demuxer_stream_adapter.h
index 5422f5590bc8fe729dbbcfed8c4215fddf20bcb3..06a39331b255ace46f1439c2333b937f9d6979af 100644
--- a/media/mojo/services/mojo_demuxer_stream_adapter.h
+++ b/media/mojo/services/mojo_demuxer_stream_adapter.h
@@ -41,6 +41,8 @@ class MojoDemuxerStreamAdapter : public DemuxerStream {
void EnableBitstreamConverter() override;
bool SupportsConfigChanges() override;
VideoRotation video_rotation() override;
+ bool enabled() const override;
+ void set_enabled(bool enabled, base::TimeDelta timestamp) override;
private:
void OnStreamReady(mojom::DemuxerStream::Type type,
@@ -75,6 +77,8 @@ class MojoDemuxerStreamAdapter : public DemuxerStream {
DemuxerStream::Type type_;
+ bool enabled_ = true;
chcunningham 2016/06/03 01:38:49 This class' style is to set defaults in the ctor
+
// DataPipe for deserializing the data section of DecoderBuffers from.
mojo::ScopedDataPipeConsumerHandle stream_pipe_;

Powered by Google App Engine
This is Rietveld 408576698