From 7b7d03721c3d6583e20131d7d6b286df5eeaff12 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Wed, 22 May 2019 20:00:30 +0200 Subject: [PATCH] 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. --- src/modules/video/theora/TheoraVideoStream.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/video/theora/TheoraVideoStream.cpp b/src/modules/video/theora/TheoraVideoStream.cpp index e47be2981..dc957713e 100644 --- a/src/modules/video/theora/TheoraVideoStream.cpp +++ b/src/modules/video/theora/TheoraVideoStream.cpp @@ -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;