mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1101742 - Fix OmxDecoder::mIsVideoSeeking r= cajbir
This commit is contained in:
parent
1359da3949
commit
5b6033771f
@ -582,20 +582,24 @@ bool OmxDecoder::ReadVideo(VideoFrame *aFrame, int64_t aTimeUs,
|
|||||||
}
|
}
|
||||||
// If there is no next Keyframe, jump to the previous key frame.
|
// If there is no next Keyframe, jump to the previous key frame.
|
||||||
if (err == ERROR_END_OF_STREAM && seekMode == MediaSource::ReadOptions::SEEK_NEXT_SYNC) {
|
if (err == ERROR_END_OF_STREAM && seekMode == MediaSource::ReadOptions::SEEK_NEXT_SYNC) {
|
||||||
seekMode = MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC;
|
seekMode = MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC;
|
||||||
findNextBuffer = true;
|
findNextBuffer = true;
|
||||||
{
|
{
|
||||||
Mutex::Autolock autoLock(mSeekLock);
|
Mutex::Autolock autoLock(mSeekLock);
|
||||||
mIsVideoSeeking = true;
|
mIsVideoSeeking = true;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
} else if (err != OK) {
|
} else if (err != OK) {
|
||||||
ALOG("Unexpected error when seeking to %lld", aTimeUs);
|
ALOG("Unexpected error when seeking to %lld", aTimeUs);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (mVideoBuffer->range_length() == 0) {
|
if (mVideoBuffer->range_length() == 0) {
|
||||||
ReleaseVideoBuffer();
|
ReleaseVideoBuffer();
|
||||||
findNextBuffer = true;
|
findNextBuffer = true;
|
||||||
|
{
|
||||||
|
Mutex::Autolock autoLock(mSeekLock);
|
||||||
|
mIsVideoSeeking = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aDoSeek = false;
|
aDoSeek = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user