movieplayer fix youtube name

This commit is contained in:
Jacek Jendrzej
2013-09-08 18:34:55 +02:00
parent ab1757a963
commit ba4d30112d

View File

@@ -443,6 +443,13 @@ bool CMoviePlayerGui::SelectFile()
std::replace(file_name.begin(), file_name.end(), '_', ' '); std::replace(file_name.begin(), file_name.end(), '_', ' ');
} else } else
file_name = full_name; file_name = full_name;
if(file_name.substr(0,14)=="videoplayback?"){//youtube name
if(!p_movie_info->epgTitle.empty())
file_name = p_movie_info->epgTitle;
else
file_name = "";
}
printf("CMoviePlayerGui::SelectFile: full_name [%s] file_name [%s]\n", full_name.c_str(), file_name.c_str()); printf("CMoviePlayerGui::SelectFile: full_name [%s] file_name [%s]\n", full_name.c_str(), file_name.c_str());
} }
//store last multiformat play dir //store last multiformat play dir
@@ -457,20 +464,21 @@ void *CMoviePlayerGui::ShowStartHint(void *arg)
{ {
set_threadname(__func__); set_threadname(__func__);
CMoviePlayerGui *caller = (CMoviePlayerGui *)arg; CMoviePlayerGui *caller = (CMoviePlayerGui *)arg;
if(!caller->file_name.empty()){
CHintBox hintbox(LOCALE_MOVIEPLAYER_STARTING, caller->file_name.c_str(), 450, NEUTRINO_ICON_MOVIEPLAYER);
hintbox.paint();
CHintBox hintbox(LOCALE_MOVIEPLAYER_STARTING, caller->file_name.c_str(), 450, NEUTRINO_ICON_MOVIEPLAYER); while (caller->showStartingHint) {
hintbox.paint(); neutrino_msg_t msg;
neutrino_msg_data_t data;
while (caller->showStartingHint) { g_RCInput->getMsg(&msg, &data, 1);
neutrino_msg_t msg; if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) {
neutrino_msg_data_t data; if(caller->playback)
g_RCInput->getMsg(&msg, &data, 1); caller->playback->RequestAbort();
if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop) { }
if(caller->playback)
caller->playback->RequestAbort();
} }
hintbox.hide();
} }
hintbox.hide();
return NULL; return NULL;
} }