зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1182738. Part 1 - have DecodedStream::GetPosition() return a position including the start time.
This commit is contained in:
Родитель
0058bf1bad
Коммит
21cb8f8904
|
@ -641,7 +641,10 @@ int64_t
|
|||
DecodedStream::GetPosition() const
|
||||
{
|
||||
ReentrantMonitorAutoEnter mon(GetReentrantMonitor());
|
||||
return mData->GetPosition();
|
||||
// This is only called after MDSM starts playback. So mStartTime is
|
||||
// guaranteed to be something.
|
||||
MOZ_ASSERT(mStartTime.isSome());
|
||||
return mStartTime.ref() + mData->GetPosition();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -2608,7 +2608,7 @@ int64_t MediaDecoderStateMachine::GetStreamClock() const
|
|||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
AssertCurrentThreadInMonitor();
|
||||
return mStreamStartTime + mDecodedStream->GetPosition();
|
||||
return mDecodedStream->GetPosition();
|
||||
}
|
||||
|
||||
int64_t MediaDecoderStateMachine::GetVideoStreamPosition(TimeStamp aTimeStamp) const
|
||||
|
|
Загрузка…
Ссылка в новой задаче