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__; |