From af920c89882f845e98788c5136c6320b5fbddb91 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 26 Aug 2013 17:02:14 +0200 Subject: [PATCH] /movieplayer: filpeplayer add parse for rtmp --- src/gui/movieplayer.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index aaa89fbfb..7572457bd 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -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; + } } } }