Bug 1546655 - Switch to NullableTimeUnit where applicable in DecodedStream. r=jya

DecodedStream is already using this for mStartTime.

Depends on D32109

Differential Revision: https://phabricator.services.mozilla.com/D32110

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-05-22 12:46:17 +00:00
Родитель 89a63019db
Коммит 21e37086ec
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -22,6 +22,7 @@
namespace mozilla {
using media::NullableTimeUnit;
using media::TimeUnit;
/*
@ -275,11 +276,11 @@ class DecodedStreamData {
// mLastVideoStartTime is the start timestamp for the last packet sent to the
// stream. Therefore video packets starting after this time need to be copied
// to the output stream.
Maybe<TimeUnit> mLastVideoStartTime;
NullableTimeUnit mLastVideoStartTime;
// mLastVideoEndTime is the end timestamp for the last packet sent to the
// stream. It is used to adjust durations of chunks sent to the output stream
// when there are overlaps in VideoData.
Maybe<TimeUnit> mLastVideoEndTime;
NullableTimeUnit mLastVideoEndTime;
// The timestamp of the last frame, so we can ensure time never goes
// backwards.
TimeStamp mLastVideoTimeStamp;