From a470eb716776ce559af7208722ba5f332b6e3c63 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 27 Dec 2017 00:49:34 +0100 Subject: [PATCH] - movieplayer: remove obsolete static bool running handling Signed-off-by: Thilo Graf --- src/gui/movieplayer.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 4d68ca57d..ab6928c72 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -374,13 +374,9 @@ void CMoviePlayerGui::restoreNeutrino() printf("%s: restoring done.\n", __func__);fflush(stdout); } -static bool running = false; int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) { printf("[movieplayer] actionKey=%s\n", actionKey.c_str()); - if (running) - return menu_return::RETURN_EXIT_ALL; - running = true; if (parent) parent->hide(); @@ -477,7 +473,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) haveLuaInfoFunc = false; } else { - running = false; return menu_return::RETURN_REPAINT; } @@ -510,8 +505,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO); - running = false; - if (timeshift != TSHIFT_MODE_OFF){ timeshift = TSHIFT_MODE_OFF; return menu_return::RETURN_EXIT_ALL;