- audioplayer: allow RC_previoussong and RC_nextsong

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-10-27 22:05:11 +02:00
committed by Thilo Graf
parent edd88db0f9
commit 5ec2e9c11e

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)
{