From 5ec2e9c11eebccb19585fb55ea6487f02bb43c53 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 27 Oct 2017 22:05:11 +0200 Subject: [PATCH] - audioplayer: allow RC_previoussong and RC_nextsong Signed-off-by: Thilo Graf --- src/gui/audioplayer.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index ff3b1238d..be972239e 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -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) {