audioplayer: allow RC_previoussong and RC_nextsong

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5ec2e9c11e
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-27 (Fri, 27 Oct 2017)

Origin message was:
------------------
- audioplayer: allow RC_previoussong and RC_nextsong

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-10-27 22:05:11 +02:00
committed by Thilo Graf
parent bb46f93755
commit 3e7dc82756

View File

@@ -442,7 +442,24 @@ int CAudioPlayerGui::show()
else
loop=false;
}
else if (msg == CRCInput::RC_left)
#if 0 //add RC_favorites for internetradio
else if ((msg == CRCInput::RC_favorites) && (m_inetmode))
{
if (m_key_level == 0)
{
// clear playlist and load RADIO_FAVORITES_XML_FILE
if (access(RADIO_FAVORITES_XML_FILE, F_OK) == 0)
{
if (!m_playlist.empty())
clearPlaylist();
scanXmlFile(RADIO_FAVORITES_XML_FILE);
clear_before_update = true;
update = true;
}
}
}
#endif
else if (msg == CRCInput::RC_left || msg == CRCInput::RC_previoussong)
{
if (m_key_level == 1)
{
@@ -469,7 +486,7 @@ int CAudioPlayerGui::show()
}
}
else if (msg == CRCInput::RC_right)
else if (msg == CRCInput::RC_right || msg == CRCInput::RC_nextsong)
{
if (m_key_level == 1)
{