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:
Bart van Strien
2019-05-22 20:00:30 +02:00
parent 064296a6ce
commit 7b7d03721c
@@ -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;