From cc0835b0789b265565e1d55064ffef3ce0b51fb7 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 16 May 2017 15:26:20 +0200 Subject: [PATCH] movieplayer: reduce timeout for bisectional jumps Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a0918616dc84b70178a086fa4bc92164ac60f3ab Author: vanhofen Date: 2017-05-16 (Tue, 16 May 2017) Origin message was: ------------------ - movieplayer: reduce timeout for bisectional jumps ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 7f806bdaa..dde44218d 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1355,6 +1355,7 @@ void CMoviePlayerGui::PlayFileLoop(void) //NI - bisectional jumps int bisection_jump = 300; int bisection_loop = -1; + int bisection_loop_max = 5; while (playstate >= CMoviePlayerGui::PLAY) { @@ -1374,7 +1375,7 @@ void CMoviePlayerGui::PlayFileLoop(void) //NI - bisectional jumps if (bisection_loop > -1) bisection_loop++; - if (bisection_loop > 10) + if (bisection_loop > bisection_loop_max) bisection_loop = -1; if ((playstate >= CMoviePlayerGui::PLAY) && (timeshift != TSHIFT_MODE_OFF || (playstate != CMoviePlayerGui::PAUSE))) { @@ -1635,7 +1636,7 @@ 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 <= 10)) + if ((lastmsg == CRCInput::RC_page_up || lastmsg == CRCInput::RC_page_down) && (bisection_loop > -1 && bisection_loop <= bisection_loop_max)) bisection_jump /= 2; else bisection_jump = 300;