movieplayer.cpp: add rtsp parse

This commit is contained in:
Jacek Jendrzej
2013-09-09 19:25:37 +02:00
parent 381e59a54f
commit 79e63c3f78

View File

@@ -420,7 +420,7 @@ bool CMoviePlayerGui::SelectFile()
if (strlen(cLine) > 0 && cLine[0]!='#') if (strlen(cLine) > 0 && cLine[0]!='#')
{ {
char *url = NULL; char *url = NULL;
if ( (url = strstr(cLine, "http://")) || (url = strstr(cLine, "rtmp://")) ){ if ( (url = strstr(cLine, "http://")) || (url = strstr(cLine, "rtmp://")) || (url = strstr(cLine, "rtsp://")) ){
if (url != NULL) { if (url != NULL) {
printf("name %s [%d] url: %s\n", name, dur, url); printf("name %s [%d] url: %s\n", name, dur, url);
full_name = url; full_name = url;