[vlc-devel] [PATCH 46/48] hls: Fixing bandwidth initialization.

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


Bandwidth is an unsigned value. Setting it to -1 would be a bad idea.
---
 modules/stream_filter/httplive.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 0c0652f..65de170 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1001,7 +1001,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, s->p_sys->m3u8_playlist );
+            hls = hls_New(streams, 0, 0, s->p_sys->m3u8_playlist );
             if (hls)
             {
                 /* Get TARGET-DURATION first */
-- 
1.7.8.3




More information about the vlc-devel mailing list