2005-06-22 Thomas Vander Stichele <thomas at apestaart dot org>
+ * gst/parse/grammar.y:
+ add a log line for type deserialization
+
+2005-06-22 Thomas Vander Stichele <thomas at apestaart dot org>
+
* check/gst/gstvalue.c: (START_TEST):
* gst/gstvalue.c: (gst_value_deserialize):
return long long, not int, so gint64 deserialization actually
gchar *pos = value;
GValue v = { 0, };
GValue v2 = { 0, };
+ GType value_type;
+
/* parse the string, so the property name is null-terminated an pos points
to the beginning of the value */
while (!g_ascii_isspace (*pos) && (*pos != '=')) pos++;
pos[strlen (pos) - 1] = '\0';
}
gst_parse_unescape (pos);
- if ((pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value))) {
- g_value_init (&v, G_PARAM_SPEC_VALUE_TYPE(pspec));
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value);
+ if (pspec) {
+ value_type = G_PARAM_SPEC_VALUE_TYPE (pspec);
+ GST_LOG ("parsing property %s as a %s", pspec->name,
+ g_type_name (value_type));
+ g_value_init (&v, value_type);
if (!gst_value_deserialize (&v, pos))
goto error;
g_object_set_property (G_OBJECT (element), value, &v);