[vlc-devel] [PATCH 44/48] hls: Fixing streams with non-meta playlist and relative URL

Hugo Beauzée-Luyssen beauze.h at gmail.com
Mon Jan 9 16:16:53 CET 2012


---
 modules/stream_filter/httplive.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index ae098b9..95657d4 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -235,7 +235,7 @@ static hls_stream_t *hls_New(vlc_array_t *hls_stream, const int id, const uint64
     hls->version = 1;  /* default protocol version */
     hls->b_cache = true;
     hls->psz_current_key_path = NULL;
-    hls->uri = uri?strdup(uri):NULL;
+    hls-> uri = uri ? strdup( uri ) : NULL;
     hls->segments = vlc_array_new();
     vlc_array_append(hls_stream, hls);
     vlc_mutex_init(&hls->lock);
@@ -999,7 +999,7 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
         else
         {
             /* No Meta playlist used */
-            hls = hls_New(streams, 0, -1, NULL);
+            hls = hls_New(streams, 0, -1, s->p_sys->m3u8_playlist );
             if (hls)
             {
                 /* Get TARGET-DURATION first */
-- 
1.7.8.3




More information about the vlc-devel mailing list