From ae9cbf88a551d55866a681f963c5d16bee521a51 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 3 Jan 2018 01:41:10 +0100 Subject: [PATCH] movieplayer: divide bisectional jumps in half only if direction is changed Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e018066d23e3c3a1dbec68b7d76420b95fd0904c Author: vanhofen Date: 2018-01-03 (Wed, 03 Jan 2018) Origin message was: ------------------ - movieplayer: divide bisectional jumps in half only if direction is changed --- src/gui/movieplayer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 4c6d219e9..885cc298e 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1940,7 +1940,10 @@ void CMoviePlayerGui::PlayFileLoop(void) if (g_settings.movieplayer_bisection_jump) { if ((lastmsg == CRCInput::RC_page_up || lastmsg == CRCInput::RC_page_down) && (bisection_loop > -1 && bisection_loop <= bisection_loop_max)) - bisection_jump /= 2; + { + if (msg != lastmsg) + bisection_jump /= 2; + } else bisection_jump = g_settings.movieplayer_bisection_jump * 60;