diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index 4335ac8ee..83814b163 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -185,11 +185,11 @@ WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data) // we borrow this from filebrowser extern size_t CurlWriteToString(void *ptr, size_t size, size_t nmemb, void *data); -CAudioPlayerGui::CAudioPlayerGui(bool /*inetmode*/) +CAudioPlayerGui::CAudioPlayerGui(bool inetmode) { m_frameBuffer = CFrameBuffer::getInstance(); m_visible = false; - m_inetmode = false; //inetmode;//FIXME + m_inetmode = inetmode; Init(); } @@ -428,22 +428,7 @@ int CAudioPlayerGui::show() } } - if ( msg == CRCInput::RC_tv) - { - if (m_inetmode) { - m_inetmode = false; - m_radiolist = m_playlist; - m_playlist = m_filelist; - } else { - m_inetmode = true; - m_filelist = m_playlist; - m_playlist = m_radiolist; - } - Init(); - clear_before_update = true; - update = true; - } - else if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) + if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) { if (m_state != CAudioPlayerGui::STOP) stop(); diff --git a/src/neutrino_menue.cpp b/src/neutrino_menue.cpp index 07ec0d95e..543d774e2 100644 --- a/src/neutrino_menue.cpp +++ b/src/neutrino_menue.cpp @@ -713,11 +713,13 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings #if 1 CMenuWidget *media = new CMenuWidget(LOCALE_MAINMENU_MEDIA); addMenueIntroItems(*media); - + audioPlayer = new CAudioPlayerGui(); media->addItem(new CMenuForwarder(LOCALE_MAINMENU_AUDIOPLAYER, true, NULL, audioPlayer, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED)); + audioPlayer = new CAudioPlayerGui(true); + media->addItem(new CMenuForwarder(LOCALE_INETRADIO_NAME, true, NULL, audioPlayer, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE)); media->addItem(new CMenuForwarder(LOCALE_MAINMENU_MOVIEPLAYER, true, NULL, &moviePlayer, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN)); media->addItem(new CMenuForwarder(LOCALE_MAINMENU_PICTUREVIEWER, true, NULL, new CPictureViewerGui(), NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW)); - media->addItem(new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, new CUpnpBrowserGui(), NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE)); + media->addItem(new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, new CUpnpBrowserGui(), NULL, CRCInput::convertDigitToKey(0))); mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_MEDIA, true, NULL, media, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE)); #else mainMenu.addItem(GenericMenuSeparatorLine);