movieplayer: re-enable youtube playback

Origin commit data
------------------
Commit: a5448c8776
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-20 (Wed, 20 Dec 2017)

Origin message was:
------------------
- movieplayer: re-enable youtube playback
This commit is contained in:
vanhofen
2017-12-20 10:55:33 +01:00
parent e1e8980491
commit 96bbccd9dd

View File

@@ -430,13 +430,11 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
moviebrowser->setMode(MB_SHOW_RECORDS);
//wakeup_hdd(g_settings.network_nfs_recordingdir.c_str());
}
#if HAVE_COOL_HARDWARE || HAVE_GENERIC_HARDWARE
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)
@@ -723,12 +721,10 @@ bool CMoviePlayerGui::prepareFile(CFile *file)
printf("CMoviePlayerGui::prepareFile: file %s start %d\n", file_name.c_str(), startposition);
}
}
#if HAVE_COOL_HARDWARE
if (isYT) {
file_name = file->Url;
is_file_player = true;
}
#endif
fillPids();
}
if (file->getType() == CFile::FILE_ISO)