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

Unified Diff: services/media/framework_mojo/mojo_producer.h

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 | « services/media/framework_mojo/mojo_consumer.cc ('k') | services/media/framework_mojo/mojo_producer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework_mojo/mojo_producer.h
diff --git a/services/media/framework_mojo/mojo_producer.h b/services/media/framework_mojo/mojo_producer.h
index 2fb252e02c22727c02087ec89f0a5565ee6fd117..5679b7cb127f6fe14a85b4770e071759b11cfd50 100644
--- a/services/media/framework_mojo/mojo_producer.h
+++ b/services/media/framework_mojo/mojo_producer.h
@@ -45,7 +45,7 @@ class MojoProducer : public MediaProducer, public ActiveSink {
// Gets the first presentation time seen on any packet after the most recent
// flush or, if there has never been a flush, the first packet supplied.
- int64_t GetFirstPresentationTimeSinceFlush();
+ int64_t GetFirstPtsSinceFlush();
// ActiveSink implementation.
PayloadAllocator* allocator() override;
@@ -89,8 +89,7 @@ class MojoProducer : public MediaProducer, public ActiveSink {
bool end_of_stream_= false;
DemandCallback demand_callback_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
- int64_t first_presentation_time_since_flush_ =
- Packet::kUnknownPresentationTime;
+ int64_t first_pts_since_flush_ = Packet::kUnknownPts;
// TODO(dalesat): Base this logic on presentation time or duration.
uint32_t max_pushes_outstanding_ = 0;
uint32_t current_pushes_outstanding_ = 0;
« no previous file with comments | « services/media/framework_mojo/mojo_consumer.cc ('k') | services/media/framework_mojo/mojo_producer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698