- audioplayer: split RC_home/RC_stop handling; ...

now RC_home do not stop playback anymore and RC_stop do not close gui.

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-01-26 22:08:46 +01:00
committed by Thilo Graf
parent 9ffbf84ce1
commit 0d0553a639

View File

@@ -444,12 +444,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;
}
if (msg == CRCInput::RC_stop)
{ {
if (m_state != CAudioPlayerGui::STOP) if (m_state != CAudioPlayerGui::STOP)
stop(); stop();
else
loop=false;
} }
#if 0 //add RC_favorites for internetradio #if 0 //add RC_favorites for internetradio
else if ((msg == CRCInput::RC_favorites) && (m_inetmode)) else if ((msg == CRCInput::RC_favorites) && (m_inetmode))