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

Unified Diff: media/base/pipeline_impl.cc

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/base/pipeline_impl.cc
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index 4b83701c5a6963dce8b28d3673183fce8c36cc5f..a372003faa09b2dc45ac1a8348c2645ab5c4c6f1 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -85,6 +85,21 @@ void PipelineImpl::Start(Demuxer* demuxer,
FROM_HERE, base::Bind(&PipelineImpl::StartTask, weak_this_));
}
+void PipelineImpl::RestartStreamPlayback(DemuxerStream* stream,
+ base::TimeDelta time) {
+ DCHECK(main_task_runner_->BelongsToCurrentThread());
+ DVLOG(2) << __FUNCTION__;
+ media_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&PipelineImpl::RestartStreamPlaybackTask,
+ weak_this_, stream, time));
+}
+
+void PipelineImpl::RestartStreamPlaybackTask(DemuxerStream* stream,
+ base::TimeDelta time) {
+ DCHECK(media_task_runner_->BelongsToCurrentThread());
+ renderer_->RestartStreamPlayback(stream, time);
+}
+
void PipelineImpl::Stop() {
DCHECK(main_task_runner_->BelongsToCurrentThread());
DVLOG(2) << __FUNCTION__;

Powered by Google App Engine
This is Rietveld 408576698