From a4847fd4db9f4a256fc50c35901cd40d46a2336d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Feb 2014 17:26:27 +0100 Subject: [PATCH] hlsdemux: Actually store doubles as such and don't truncate them to ints Fixes broken duration reporting. --- ext/hls/m3u8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 6beca2255f..c4bd0b1865 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -160,7 +160,7 @@ double_from_string (gchar * ptr, gchar ** endptr, gdouble * val) if (endptr) *endptr = end; - *val = (gint) ret; + *val = (gdouble) ret; return end != ptr; }