diff --git a/src/gui/mediaplayer.cpp b/src/gui/mediaplayer.cpp index efbd0a95a..e0ad5e6a2 100644 --- a/src/gui/mediaplayer.cpp +++ b/src/gui/mediaplayer.cpp @@ -176,11 +176,12 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p) personalize->addItem(movieplayer_menu, fw_fileplay_audio, &g_settings.personalize[SNeutrinoSettings::P_MPLAYER_FILEPLAY_AUDIO]); #endif +#if ENABLE_YOUTUBE_PLAYER //ytplayback CMenuForwarder *fw_ytplay = new CMenuForwarder(LOCALE_MOVIEPLAYER_YTPLAYBACK, g_settings.youtube_enabled, NULL, &CMoviePlayerGui::getInstance(), "ytplayback", CRCInput::RC_blue); fw_ytplay->setHint(NEUTRINO_ICON_HINT_YTPLAY, LOCALE_MENU_HINT_YTPLAY); personalize->addItem(movieplayer_menu, fw_ytplay, &g_settings.personalize[SNeutrinoSettings::P_MPLAYER_YTPLAY]); - +#endif //add movieplayer submenu CMenuForwarder *fw_mp = new CMenuForwarder(LOCALE_MAINMENU_MEDIAPLAYER, enabled, NULL, movieplayer_menu, NULL, CRCInput::RC_yellow); fw_mp->setHint(NEUTRINO_ICON_HINT_MOVIE, LOCALE_MENU_HINT_MOVIE); diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 29559fe5e..b84960d4b 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -404,11 +404,13 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey) moviebrowser->setMode(MB_SHOW_RECORDS); //wakeup_hdd(g_settings.network_nfs_recordingdir.c_str()); } +#if ENABLE_YOUTUBE_PLAYER else if (actionKey == "ytplayback") { isMovieBrowser = true; moviebrowser->setMode(MB_SHOW_YT); isYT = true; } +#endif else if (actionKey == "fileplayback_video") { is_audio_playing = false; if (filebrowser) diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index 1770f758b..5cb341840 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -448,6 +448,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) // FIXME menu_item->setHint("", NONEXISTANT_LOCALE); break; } +#if ENABLE_YOUTUBE_PLAYER case SNeutrinoSettings::ITEM_YOUTUBE: { keyhelper.get(&key,&icon); @@ -455,6 +456,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) menu_item->setHint(NEUTRINO_ICON_HINT_YTPLAY, LOCALE_MENU_HINT_YTPLAY); break; } +#endif case SNeutrinoSettings::ITEM_FILEPLAY_VIDEO: { keyhelper.get(&key,&icon);