From 48e7d3044bf4fbffe066aca4c513b71c134e7f59 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 26 Jan 2018 23:52:01 +0100 Subject: [PATCH] audioplayer: split RC_home/RC_stop handling; ... now RC_home do not stop playback anymore and RC_stop do not close gui. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d8042a9d69a1b764ddc7669476ebb92ce0682771 Author: vanhofen Date: 2018-01-26 (Fri, 26 Jan 2018) Origin message was: ------------------ - audioplayer: split RC_home/RC_stop handling; ... now RC_home do not stop playback anymore and RC_stop do not close gui. ------------------ This commit was generated by Migit --- src/gui/audioplayer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index c88fb4747..6bb5bdd26 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -478,12 +478,15 @@ int CAudioPlayerGui::show() } } - if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) + if (msg == CRCInput::RC_home) + { + if (m_state == CAudioPlayerGui::STOP) + loop=false; + } + else if (msg == CRCInput::RC_stop) { if (m_state != CAudioPlayerGui::STOP) stop(); - else - loop=false; } //NI - add RC_favorites for internetradio else if ((msg == CRCInput::RC_favorites) && (m_inetmode))