neutrino: some more mode_radio/mode_webradio fixes

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: d84331689a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-06 (Mon, 06 Nov 2017)

Origin message was:
------------------
- neutrino: some more mode_radio/mode_webradio fixes

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


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-06 00:00:31 +01:00
committed by Thilo Graf
parent 859f22a109
commit 2ad3f57ea3

View File

@@ -4457,15 +4457,15 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
}
else if(actionKey=="ytplayback" || actionKey=="tsmoviebrowser" || actionKey=="fileplayback") {
frameBuffer->Clear();
if(mode == NeutrinoMessages::mode_radio )
if (mode == NeutrinoMessages::mode_radio || mode == NeutrinoMessages::mode_webradio)
frameBuffer->stopFrame();
int _mode = mode;
int prev_mode = mode;
// FIXME CMediaPlayerMenu::getInstance()->exec(NULL, actionKey); ??
CMoviePlayerGui::getInstance().exec(NULL, actionKey);
if(_mode == NeutrinoMessages::mode_radio )
if (prev_mode == NeutrinoMessages::mode_radio || prev_mode == NeutrinoMessages::mode_webradio)
frameBuffer->showFrame("radiomode.jpg");
#if 0
else if (_mode == mode_webtv)
else if (prev_mode == mode_webtv)
tvMode(true);
#endif
return menu_return::RETURN_EXIT_ALL;