summaryrefslogtreecommitdiffstats
path: root/gst/apetag
diff options
context:
space:
mode:
Diffstat (limited to 'gst/apetag')
-rw-r--r--gst/apetag/gstapedemux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/apetag/gstapedemux.c b/gst/apetag/gstapedemux.c
index 6675995b..73f9e467 100644
--- a/gst/apetag/gstapedemux.c
+++ b/gst/apetag/gstapedemux.c
@@ -278,11 +278,14 @@ ape_demux_parse_tags (const guint8 * data, gint size)
}
case G_TYPE_DOUBLE:{
gdouble v_double;
+ gchar *endptr;
- if (sscanf (val, "%lf", &v_double) == 1) {
+ v_double = g_strtod (val, &endptr);
+ if (endptr != val) {
g_value_init (&v, G_TYPE_DOUBLE);
g_value_set_double (&v, v_double);
}
+
break;
}
default:{