mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 846992 - Don't assume last video frames in media's timestamp covers all of audio overhang. r=kinetik
This commit is contained in:
parent
615be796de
commit
1df4850cc0
@ -1946,8 +1946,9 @@ void MediaDecoderStateMachine::DecodeSeek()
|
||||
if (HasVideo()) {
|
||||
VideoData* video = mReader->VideoQueue().PeekFront();
|
||||
if (video) {
|
||||
NS_ASSERTION(video->mTime <= seekTime && seekTime <= video->mEndTime,
|
||||
"Seek target should lie inside the first frame after seek");
|
||||
NS_ASSERTION((video->mTime <= seekTime && seekTime <= video->mEndTime) ||
|
||||
mReader->VideoQueue().IsFinished(),
|
||||
"Seek target should lie inside the first frame after seek, unless it's the last frame.");
|
||||
{
|
||||
ReentrantMonitorAutoExit exitMon(mDecoder->GetReentrantMonitor());
|
||||
RenderVideoFrame(video, TimeStamp::Now());
|
||||
|
Loading…
Reference in New Issue
Block a user