mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- movieplayer: remove obsolete static bool running handling
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -374,13 +374,9 @@ void CMoviePlayerGui::restoreNeutrino()
|
|||||||
printf("%s: restoring done.\n", __func__);fflush(stdout);
|
printf("%s: restoring done.\n", __func__);fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool running = false;
|
|
||||||
int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
|
int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
|
||||||
{
|
{
|
||||||
printf("[movieplayer] actionKey=%s\n", actionKey.c_str());
|
printf("[movieplayer] actionKey=%s\n", actionKey.c_str());
|
||||||
if (running)
|
|
||||||
return menu_return::RETURN_EXIT_ALL;
|
|
||||||
running = true;
|
|
||||||
|
|
||||||
if (parent)
|
if (parent)
|
||||||
parent->hide();
|
parent->hide();
|
||||||
@@ -477,7 +473,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
|
|||||||
haveLuaInfoFunc = false;
|
haveLuaInfoFunc = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
running = false;
|
|
||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -510,8 +505,6 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
|
|||||||
|
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
||||||
|
|
||||||
running = false;
|
|
||||||
|
|
||||||
if (timeshift != TSHIFT_MODE_OFF){
|
if (timeshift != TSHIFT_MODE_OFF){
|
||||||
timeshift = TSHIFT_MODE_OFF;
|
timeshift = TSHIFT_MODE_OFF;
|
||||||
return menu_return::RETURN_EXIT_ALL;
|
return menu_return::RETURN_EXIT_ALL;
|
||||||
|
Reference in New Issue
Block a user