From cfb454a088df0ce529ceb338edc1b2d30164f890 Mon Sep 17 00:00:00 2001 From: Mike Odom <5105729+ThatOdieGuy@users.noreply.github.com> Date: Tue, 9 Jul 2019 18:59:38 -0700 Subject: [PATCH] Seeking backwards a bit if we were stepping --- src/AVPlayer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/AVPlayer.cpp b/src/AVPlayer.cpp index 94a16b7cd..8bef91aad 100644 --- a/src/AVPlayer.cpp +++ b/src/AVPlayer.cpp @@ -585,8 +585,12 @@ void AVPlayer::pause(bool p) return; if (!p) { - // TODO: If was stepping, skip our position a little bit behind us. - d->was_stepping = false; + if (d->was_stepping) { + d->was_stepping = false; + // If was stepping, skip our position a little bit behind us. + // This fixes an issue with the audio timer + seek(position() - 100); + } } audio()->pause(p);