mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
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:
@@ -442,7 +442,24 @@ int CAudioPlayerGui::show()
|
|||||||
else
|
else
|
||||||
loop=false;
|
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)
|
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)
|
if (m_key_level == 1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user