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

Unified Diff: services/media/factory_service/media_sink_impl.cc

Issue 1814553002: Motown: Improvements to packet definition (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added a comment. Created 4 years, 9 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 | « mojo/services/media/common/interfaces/media_transport.mojom ('k') | services/media/framework/formatting.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/factory_service/media_sink_impl.cc
diff --git a/services/media/factory_service/media_sink_impl.cc b/services/media/factory_service/media_sink_impl.cc
index 36b3a22d90ad773fd414dc878c1320177b9c3d12..b32121e3c33114f6f8dda127dcfbf5f5f44c9e7e 100644
--- a/services/media/factory_service/media_sink_impl.cc
+++ b/services/media/factory_service/media_sink_impl.cc
@@ -240,12 +240,11 @@ void MediaSinkImpl::MaybeSetRate() {
// The media time corresponding to start_local_time.
int64_t start_media_time;
if (flushed_ &&
- producer_->GetFirstPresentationTimeSinceFlush() !=
- Packet::kUnknownPresentationTime) {
+ producer_->GetFirstPtsSinceFlush() != Packet::kUnknownPts) {
// We're getting started initially or after a flush/prime, so the media
// time corresponding to start_local_time should be the PTS of
// the first packet.
- start_media_time = producer_->GetFirstPresentationTimeSinceFlush();
+ start_media_time = producer_->GetFirstPtsSinceFlush();
} else {
// We're resuming, so the media time corresponding to start_local_time can
// be calculated using the existing transform.
« no previous file with comments | « mojo/services/media/common/interfaces/media_transport.mojom ('k') | services/media/framework/formatting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698