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

Unified Diff: media/base/pipeline.cc

Issue 400853002: Drop time from media::{Audio,Video}Renderer::StartPlayingFrom(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 5 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
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline.cc
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
index ca53be0ceb874e7e567c0c6c831d425bd76b1329..e1af61130aa392b5c7d4f00cb5821a4afe861b0d 100644
--- a/media/base/pipeline.cc
+++ b/media/base/pipeline.cc
@@ -402,10 +402,12 @@ void Pipeline::StateTransitionTask(PipelineStatus status) {
interpolator_->SetBounds(start_timestamp_, start_timestamp_);
}
- if (audio_renderer_)
- audio_renderer_->StartPlayingFrom(start_timestamp_);
+ if (audio_renderer_) {
+ audio_renderer_->SetMediaTime(start_timestamp_);
+ audio_renderer_->StartPlaying();
+ }
if (video_renderer_)
- video_renderer_->StartPlayingFrom(start_timestamp_);
+ video_renderer_->StartPlaying();
if (text_renderer_)
text_renderer_->StartPlaying();
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698