mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 673698 - Don't update video playback position during seek. r=roc
This commit is contained in:
parent
7d72d1e291
commit
eac2102182
@ -865,7 +865,16 @@ void nsBuiltinDecoder::PlaybackPositionChanged()
|
||||
{
|
||||
ReentrantMonitorAutoEnter mon(mReentrantMonitor);
|
||||
if (mDecoderStateMachine) {
|
||||
mCurrentTime = mDecoderStateMachine->GetCurrentTime();
|
||||
if (!IsSeeking()) {
|
||||
// Only update the current playback position if we're not seeking.
|
||||
// If we are seeking, the update could have been scheduled on the
|
||||
// state machine thread while we were playing but after the seek
|
||||
// algorithm set the current playback position on the main thread,
|
||||
// and we don't want to override the seek algorithm and change the
|
||||
// current time after the seek has started but before it has
|
||||
// completed.
|
||||
mCurrentTime = mDecoderStateMachine->GetCurrentTime();
|
||||
}
|
||||
mDecoderStateMachine->ClearPositionChangeFlag();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user