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: d8042a9d69
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2018-01-26 23:52:01 +01:00
parent fd9be21477
commit 48e7d3044b

View File

@@ -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) if (m_state != CAudioPlayerGui::STOP)
stop(); stop();
else
loop=false;
} }
//NI - add RC_favorites for internetradio //NI - add RC_favorites for internetradio
else if ((msg == CRCInput::RC_favorites) && (m_inetmode)) else if ((msg == CRCInput::RC_favorites) && (m_inetmode))