summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-02-10 17:26:27 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-02-10 17:28:01 +0100
commit6a246a890b202b291537039e9c5cf64120ca4702 (patch)
tree2a26cb9e88235a9fa54b32105146beb0c52bdcde
parentb122153747bcfffb2496dd383c7d3932e9ddc01a (diff)
downloadgstreamer-plugins-bad-6a246a890b202b291537039e9c5cf64120ca4702.tar.gz
hlsdemux: Actually store doubles as such and don't truncate them to ints
Fixes broken duration reporting.
-rw-r--r--ext/hls/m3u8.c2
1 files changed, 1 insertions, 1 deletions
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;
}