b=1023697 change MediaDecoderStateMachine::mSyncPointInMediaStream from StreamTime to µs r=roc
This allows the conversion from StreamTime to be performed while a stream is available.
This commit is contained in:
@@ -1411,8 +1411,8 @@ int64_t MediaDecoderStateMachine::GetCurrentTimeViaMediaStreamSync()
|
||||
AssertCurrentThreadInMonitor();
|
||||
NS_ASSERTION(mSyncPointInDecodedStream >= 0, "Should have set up sync point");
|
||||
DecodedStreamData* stream = mDecoder->GetDecodedStream();
|
||||
StreamTime streamDelta = stream->GetLastOutputTime() - mSyncPointInMediaStream;
|
||||
return mSyncPointInDecodedStream + MediaTimeToMicroseconds(streamDelta);
|
||||
int64_t streamDelta = stream->GetLastOutputTime() - mSyncPointInMediaStream;
|
||||
return mSyncPointInDecodedStream + streamDelta;
|
||||
}
|
||||
|
||||
void MediaDecoderStateMachine::StartPlayback()
|
||||
|
||||
Reference in New Issue
Block a user