| 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.
|
|
|