Commit 4f799e00 authored by Sebastian Dröge's avatar Sebastian Dröge Committed by Jan Schmidt

gst/apetag/gstapedemux.c: Use g_strtod() instead of sscanf to parse doubles,...

gst/apetag/gstapedemux.c: Use g_strtod() instead of sscanf to parse doubles, so that it will try parsing in the C loc...

Original commit message from CVS:
* gst/apetag/gstapedemux.c: (ape_demux_parse_tags):
Use g_strtod() instead of sscanf to parse doubles, so that it will
try parsing in the C locale if the current locale fails.
Fixes: #382982
Patch by: Sebastian Dröge  <mail at slomosnail de >
parent 1fd0727d
2006-12-06 Jan Schmidt <thaytan@mad.scientist.com>
* gst/apetag/gstapedemux.c: (ape_demux_parse_tags):
Use g_strtod() instead of sscanf to parse doubles, so that it will
try parsing in the C locale if the current locale fails.
Fixes: #382982
Patch by: Sebastian Dröge <mail at slomosnail de >
2006-12-01 Jan Schmidt <thaytan@mad.scientist.com>
* win32/MANIFEST:
......
......@@ -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:{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment