mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Prevent the currently displayed video frame from changing if the video is paused
If you'd seek while the video was paused, you'd see the next frame of the video.
This commit is contained in:
@@ -293,6 +293,9 @@ bool TheoraVideoStream::swapBuffers()
|
||||
if (demuxer.isEos())
|
||||
return false;
|
||||
|
||||
if (!frameSync->isPlaying())
|
||||
return false;
|
||||
|
||||
love::thread::Lock l(bufferMutex);
|
||||
if (!frameReady)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user