From 00b4303765b21fa54024f39b0bd5bd7960e0b023 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 15 Nov 2013 09:08:14 +0100 Subject: [PATCH] - movieplayer: show infobar at every start of a movie --- src/gui/movieplayer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 4e3d16160..c7768c71a 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -493,7 +493,7 @@ void CMoviePlayerGui::PlayFile(void) neutrino_msg_data_t data; menu_ret = menu_return::RETURN_REPAINT; - bool first_start_timeshift = false; + bool first_start = true; bool time_forced = false; bool update_lcd = true; int eof = 0; @@ -536,7 +536,6 @@ void CMoviePlayerGui::PlayFile(void) playstate = CMoviePlayerGui::PLAY; CVFD::getInstance()->ShowIcon(FP_ICON_PLAY, true); if(timeshift) { - first_start_timeshift = true; startposition = -1; int i; int towait = (timeshift == 1) ? TIMESHIFT_SECONDS+1 : TIMESHIFT_SECONDS; @@ -581,9 +580,9 @@ void CMoviePlayerGui::PlayFile(void) update_lcd = false; updateLcd(); } - if (first_start_timeshift) { + if (first_start) { callInfoViewer(/*duration, position*/); - first_start_timeshift = false; + first_start = false; } g_RCInput->getMsg(&msg, &data, 10); // 1 secs..