From 2ad3f57ea3a45dcd3a73c969a5054ad28eff7136 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Nov 2017 00:00:31 +0100 Subject: [PATCH] neutrino: some more mode_radio/mode_webradio fixes Signed-off-by: Thilo Graf Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d84331689ad691396e9e964f8e23446aaeb57430 Author: vanhofen Date: 2017-11-06 (Mon, 06 Nov 2017) Origin message was: ------------------ - neutrino: some more mode_radio/mode_webradio fixes Signed-off-by: Thilo Graf ------------------ This commit was generated by Migit --- src/neutrino.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index d1497cacb..ee5e8cf84 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -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;