[vlc-commits] URI of HLS key can be relative, just like other URIs in the M3U8 file

Duncan Salerno git at videolan.org
Sun Sep 16 18:45:04 CEST 2012


vlc | branch: master | Duncan Salerno <duncan.salerno at gmail.com> | Sun Sep 16 12:52:30 2012 +0100| [f7c5ce41c3576f3250b0427edf5498fbfed4c5c9] | committer: Jean-Baptiste Kempf

URI of HLS key can be relative, just like other URIs in the M3U8 file

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_filter/httplive.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 62bfd99..57825c8 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -775,7 +775,7 @@ static int parse_Key(stream_t *s, hls_stream_t *hls, char *p_read)
             if (end != NULL)
                 *end = 0;
         }
-        hls->psz_current_key_path = strdup(uri);
+        hls->psz_current_key_path = relative_URI(hls->url, uri);
         free(value);
 
         value = iv = parse_Attributes(p_read, "IV");



More information about the vlc-commits mailing list