]> git.sesse.net Git - vlc/commitdiff
Fixing HLS on win32.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Sun, 4 Mar 2012 20:50:45 +0000 (21:50 +0100)
committerHugo Beauzée-Luyssen <beauze.h@gmail.com>
Sun, 4 Mar 2012 20:50:45 +0000 (21:50 +0100)
modules/stream_filter/httplive.c

index 984a390b79d03da0adb0e317ba6320549e9255f2..224e312e6bb090fc916c7f85d9bd06c36829a99c 100644 (file)
@@ -1844,6 +1844,16 @@ static int Open(vlc_object_t *p_this)
     }
     p_sys->m3u8 = psz_uri;
 
+    char *new_path;
+    if (asprintf(&new_path, "%s.ts", s->psz_path) < 0)
+    {
+        free(p_sys->m3u8);
+        free(p_sys);
+        return VLC_ENOMEM;
+    }
+    free(s->psz_path);
+    s->psz_path = new_path;
+
     p_sys->bandwidth = 0;
     p_sys->b_live = true;
     p_sys->b_meta = false;