From 153f5b2196cf6c42e9d8985e52f9e28d21f486b0 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b025f8abb79bafe59e599ee3c1f6586465765571 Author: vanhofen Date: 2017-11-06 (Mon, 06 Nov 2017) Origin message was: ------------------ - neutrino: some more mode_radio/mode_webradio fixes ------------------ No further description and justification available within origin commit message! ------------------ 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 6165e636e..3964fcae1 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -4743,15 +4743,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;