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

Unified Diff: media/filters/ffmpeg_demuxer.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/filters/ffmpeg_demuxer.h
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index 09bffdaf9ee68f60e24df1d7900a8d64ece510b4..6ce6504717f60cb122f544eff57c2530c0d6301e 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -111,6 +111,8 @@ class FFmpegDemuxerStream : public DemuxerStream {
AudioDecoderConfig audio_decoder_config() override;
VideoDecoderConfig video_decoder_config() override;
VideoRotation video_rotation() override;
+ bool enabled() const override;
+ void set_enabled(bool enabled, base::TimeDelta timestamp) override;
void SetLiveness(Liveness liveness);
@@ -172,6 +174,7 @@ class FFmpegDemuxerStream : public DemuxerStream {
base::TimeDelta last_packet_duration_;
Ranges<base::TimeDelta> buffered_ranges_;
VideoRotation video_rotation_;
+ bool is_enabled_;
DecoderBufferQueue buffer_queue_;
ReadCB read_cb_;

Powered by Google App Engine
This is Rietveld 408576698