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

Unified Diff: media/mojo/services/mojo_renderer_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/mojo/services/mojo_renderer_impl.cc
diff --git a/media/mojo/services/mojo_renderer_impl.cc b/media/mojo/services/mojo_renderer_impl.cc
index 336166e48414494a56e76dea16dc0abeabc0fa05..8b60c4f0c986b3308875b36ab512db4ed6e723ee 100644
--- a/media/mojo/services/mojo_renderer_impl.cc
+++ b/media/mojo/services/mojo_renderer_impl.cc
@@ -123,6 +123,14 @@ void MojoRendererImpl::StartPlayingFrom(base::TimeDelta time) {
remote_renderer_->StartPlayingFrom(time.InMicroseconds());
}
+void MojoRendererImpl::RestartStreamPlayback(DemuxerStream* stream,
+ base::TimeDelta time) {
+ DVLOG(2) << __FUNCTION__;
+ DCHECK(task_runner_->BelongsToCurrentThread());
+ bool video_stream = (stream->type() == DemuxerStream::VIDEO);
+ remote_renderer_->RestartStreamPlayback(video_stream, time.InMicroseconds());
+}
+
void MojoRendererImpl::SetPlaybackRate(double playback_rate) {
DVLOG(2) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698