mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
/movieplayer: filpeplayer add parse for rtmp
This commit is contained in:
@@ -397,12 +397,14 @@ bool CMoviePlayerGui::SelectFile()
|
|||||||
sscanf(cLine, "#EXTINF:%d,%[^\n]\n", &dur, name);
|
sscanf(cLine, "#EXTINF:%d,%[^\n]\n", &dur, name);
|
||||||
if (strlen(cLine) > 0 && cLine[0]!='#')
|
if (strlen(cLine) > 0 && cLine[0]!='#')
|
||||||
{
|
{
|
||||||
char *url = strstr(cLine, "http://");
|
char *url = NULL;
|
||||||
if (url != NULL) {
|
if ( (url = strstr(cLine, "http://")) || (url = strstr(cLine, "rtmp://")) ){
|
||||||
printf("name %s [%d] url: %s\n", name, dur, url);
|
if (url != NULL) {
|
||||||
full_name = url;
|
printf("name %s [%d] url: %s\n", name, dur, url);
|
||||||
if(strlen(name))
|
full_name = url;
|
||||||
file_name = name;
|
if(strlen(name))
|
||||||
|
file_name = name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user