movieplayer: fix new mode

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 098f021a3c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-03 (Fri, 03 Nov 2017)

Origin message was:
------------------
- movieplayer: fix new mode

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-03 09:36:19 +01:00
committed by Thilo Graf
parent 0ba0f29836
commit 2bcb7b4301

View File

@@ -296,12 +296,19 @@ void CMoviePlayerGui::cutNeutrino()
g_Zapit->setStandby(true);
#endif
m_LastMode = (CNeutrinoApp::getInstance()->getMode() /*| NeutrinoMessages::norezap*/);
int new_mode = NeutrinoMessages::mode_unknown;
m_LastMode = CNeutrinoApp::getInstance()->getMode();
if (isWebTV)
{
new_mode = (m_LastMode == NeutrinoMessages::mode_radio) ? NeutrinoMessages::mode_webradio : NeutrinoMessages::mode_webtv;
m_LastMode |= NeutrinoMessages::norezap;
}
else
{
new_mode = NeutrinoMessages::mode_ts;
}
printf("%s: save mode %x\n", __func__, m_LastMode);fflush(stdout);
int new_mode = NeutrinoMessages::norezap | (isWebTV ? NeutrinoMessages::mode_webtv : NeutrinoMessages::mode_ts);
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE, new_mode);
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE, NeutrinoMessages::norezap | new_mode);
}
void CMoviePlayerGui::restoreNeutrino()