/movieplayer: filpeplayer add parse for rtmp

This commit is contained in:
Jacek Jendrzej
2013-08-26 17:02:14 +02:00
parent 677a3ba116
commit af920c8988

View File

@@ -397,12 +397,14 @@ bool CMoviePlayerGui::SelectFile()
sscanf(cLine, "#EXTINF:%d,%[^\n]\n", &dur, name);
if (strlen(cLine) > 0 && cLine[0]!='#')
{
char *url = strstr(cLine, "http://");
if (url != NULL) {
printf("name %s [%d] url: %s\n", name, dur, url);
full_name = url;
if(strlen(name))
file_name = name;
char *url = NULL;
if ( (url = strstr(cLine, "http://")) || (url = strstr(cLine, "rtmp://")) ){
if (url != NULL) {
printf("name %s [%d] url: %s\n", name, dur, url);
full_name = url;
if(strlen(name))
file_name = name;
}
}
}
}