mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
Bug 1113600 - Part 2. Handle setting a MediaStream sync point mid-playback. r=roc
This commit is contained in:
parent
a5b7750c02
commit
a22a198c37
@ -1189,7 +1189,13 @@ void MediaDecoderStateMachine::SetSyncPointForMediaStream()
|
||||
}
|
||||
|
||||
mSyncPointInMediaStream = stream->GetLastOutputTime();
|
||||
mSyncPointInDecodedStream = mStartTime + mPlayDuration;
|
||||
TimeDuration timeSincePlayStart = mPlayStartTime.IsNull() ? TimeDuration(0) :
|
||||
TimeStamp::Now() - mPlayStartTime;
|
||||
mSyncPointInDecodedStream = mStartTime + mPlayDuration +
|
||||
timeSincePlayStart.ToMicroseconds();
|
||||
|
||||
DECODER_LOG("SetSyncPointForMediaStream MediaStream=%lldus, DecodedStream=%lldus",
|
||||
mSyncPointInMediaStream, mSyncPointInDecodedStream);
|
||||
}
|
||||
|
||||
void MediaDecoderStateMachine::ResyncMediaStreamClock()
|
||||
|
Loading…
Reference in New Issue
Block a user