[gst-devel] patch for parsing double args

Steve Baker stevebaker_org at yahoo.co.uk
Sun Mar 4 15:24:44 CET 2001


This patch fixes a problem with parsing double args
from strings.


Index: gstutils.c
===================================================================
RCS file:
/cvsroot/gstreamer/gstreamer/gst/gstutils.c,v
retrieving revision 1.9
diff -u -r1.9 gstutils.c
--- gstutils.c	2001/03/03 18:19:38	1.9
+++ gstutils.c	2001/03/04 14:21:08
@@ -247,9 +247,9 @@
 	  break;
 	}
         case GTK_TYPE_DOUBLE: {
-	  gdouble i;
-	  sscanf (value, "%g", (float *)&i);
-          gtk_object_set (GTK_OBJECT (object), name,
i, NULL);
+	  gfloat i;
+	  sscanf (value, "%g", &i);
+          gtk_object_set (GTK_OBJECT (object), name,
(gdouble)i, NULL);
 	  break;
 	}
         default:

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




More information about the gstreamer-devel mailing list