From 6a246a890b202b291537039e9c5cf64120ca4702 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: 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 8043ca1c5..45f997b96 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -161,7 +161,7 @@ double_from_string (gchar * ptr, gchar ** endptr, gdouble * val) if (endptr) *endptr = end; - *val = (gint) ret; + *val = (gdouble) ret; return end != ptr; } -- cgit v1.2.1