aboutsummaryrefslogtreecommitdiff
path: root/visualization/qmpvisualization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'visualization/qmpvisualization.cpp')
-rw-r--r--visualization/qmpvisualization.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/visualization/qmpvisualization.cpp b/visualization/qmpvisualization.cpp
index db896fd..8212503 100644
--- a/visualization/qmpvisualization.cpp
+++ b/visualization/qmpvisualization.cpp
@@ -904,9 +904,17 @@ bool qmpVisualization::update()
if (!rendermode)
{
if (sm->smGetKeyState(SMK_RIGHT) == SMKST_HIT)
- api->playerSeek(api->getCurrentPlaybackPercentage() + (sm->smGetKeyState(SMK_SHIFT) ? 5 : 1));
+ {
+ auto p = api->getCurrentPlaybackPercentage();
+ p += (sm->smGetKeyState(SMK_SHIFT) ? 5 : 1);
+ api->playbackControl(PlaybackControlCommand::Seek, &p);
+ }
if (sm->smGetKeyState(SMK_LEFT) == SMKST_HIT)
- api->playerSeek(api->getCurrentPlaybackPercentage() - (sm->smGetKeyState(SMK_SHIFT) ? 5 : 1));
+ {
+ auto p = api->getCurrentPlaybackPercentage();
+ p -= (sm->smGetKeyState(SMK_SHIFT) ? 5 : 1);
+ api->playbackControl(PlaybackControlCommand::Seek, &p);
+ }
if (sm->smGetKeyState(SMK_B) == SMKST_HIT)
debug ^= 1;
}