[vlc-commits] playlist: rectify fallback for absolute URLs

Rémi Denis-Courmont git at videolan.org
Wed Aug 3 19:41:16 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug  3 20:40:43 2016 +0300| [4e05f93d7554d332d7c3284f3815f089721430cd] | committer: Rémi Denis-Courmont

playlist: rectify fallback for absolute URLs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e05f93d7554d332d7c3284f3815f089721430cd
---

 modules/demux/playlist/playlist.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/playlist/playlist.c b/modules/demux/playlist/playlist.c
index bd99d50..cc2602e 100644
--- a/modules/demux/playlist/playlist.c
+++ b/modules/demux/playlist/playlist.c
@@ -282,6 +282,9 @@ char *ProcessMRL(const char *str, const char *base)
     free(rel);
     return abs;
 #else
+    if (strstr(str, "://") != NULL)
+        return strdup(str);
+
     const char *split = strrchr(base, '/');
     char *abs;
 



More information about the vlc-commits mailing list