From 74fddd399c23af742ecdc45da463eb1cc2e976ff Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 11 Dec 2024 18:31:07 -0800 Subject: [PATCH] fix Player > Next / Previous Frame regression --- src/player.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index 270afe4c95..e52121dcf1 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -583,8 +583,10 @@ void Player::setupActions() action = new QAction(tr("Seek End"), this); action->setShortcut(QKeySequence(Qt::Key_End)); connect(action, &QAction::triggered, this, [&]() { - if (MLT.producer()) + if (MLT.producer()) { + pause(MLT.producer()->get_length()); seek(MLT.producer()->get_length()); + } }); Actions.add("playerSeekEndAction", action); @@ -592,8 +594,10 @@ void Player::setupActions() action->setProperty(Actions.hardKeyProperty, "K+L"); action->setShortcut(QKeySequence(Qt::Key_Right)); connect(action, &QAction::triggered, this, [&]() { - if (MLT.producer()) + if (MLT.producer()) { pause(position() + 1); + seek(position() + 1); + } }); Actions.add("playerNextFrameAction", action); @@ -601,8 +605,10 @@ void Player::setupActions() action->setProperty(Actions.hardKeyProperty, "K+J"); action->setShortcut(QKeySequence(Qt::Key_Left)); connect(action, &QAction::triggered, this, [&]() { - if (MLT.producer()) + if (MLT.producer()) { pause(position() - 1); + seek(position() - 1); + } }); Actions.add("playerPreviousFrameAction", action);