mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1181504. Part 1 - add assertions to MediaDecoderStateMachine::GetAudioClock(). r=kinetik.
This commit is contained in:
parent
b1a1b52632
commit
9f88e8ea87
@ -2589,9 +2589,11 @@ MediaDecoderStateMachine::GetAudioClock() const
|
||||
// audio sink to ensure that it doesn't get destroyed on the audio sink
|
||||
// while we're using it.
|
||||
AssertCurrentThreadInMonitor();
|
||||
MOZ_ASSERT(HasAudio() && !mAudioCompleted);
|
||||
return mAudioStartTime +
|
||||
(mAudioSink ? mAudioSink->GetPosition() : 0);
|
||||
MOZ_ASSERT(HasAudio() && !mAudioCompleted && IsPlaying());
|
||||
// Since this function is called while we are playing and AudioSink is
|
||||
// created once playback starts, mAudioSink is guaranteed to be non-null.
|
||||
MOZ_ASSERT(mAudioSink);
|
||||
return mAudioStartTime + mAudioSink->GetPosition();
|
||||
}
|
||||
|
||||
int64_t MediaDecoderStateMachine::GetStreamClock() const
|
||||
|
Loading…
Reference in New Issue
Block a user