From 7573128aa74cd02d78269c8ff9d9aa30337ef859 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Sun, 4 Mar 2012 21:50:45 +0100 Subject: [PATCH] Fixing HLS on win32. --- modules/stream_filter/httplive.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c index 984a390b79..224e312e6b 100644 --- a/modules/stream_filter/httplive.c +++ b/modules/stream_filter/httplive.c @@ -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; -- 2.39.5