[vlc-commits] hls: Fix floating-point value duration parsing.

Hugo Beauzée-Luyssen git at videolan.org
Fri Mar 9 16:37:41 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Mar  9 16:36:50 2012 +0100| [08a2a6031b83a4a227c785ef46121b2fbd289b06] | committer: Hugo Beauzée-Luyssen

hls: Fix floating-point value duration parsing.

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

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

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index f9eba12..76c5c14 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -597,6 +597,7 @@ static int parse_SegmentInformation(hls_stream_t *hls, char *p_read, int *durati
             value = ((int)d) + 1;
         else
             value = ((int)d);
+        *duration = value;
     }
 
     /* Ignore the rest of the line */



More information about the vlc-commits mailing list