Commit 7573128a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fixing HLS on win32.

parent 1bde8807
...@@ -1844,6 +1844,16 @@ static int Open(vlc_object_t *p_this) ...@@ -1844,6 +1844,16 @@ static int Open(vlc_object_t *p_this)
} }
p_sys->m3u8 = psz_uri; 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->bandwidth = 0;
p_sys->b_live = true; p_sys->b_live = true;
p_sys->b_meta = false; p_sys->b_meta = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment