Get rid of the warning

Original commit message from CVS:
Get rid of the warning
This commit is contained in:
Wim Taymans 2002-03-31 16:27:28 +00:00
parent 213703ed1b
commit 06c7e989ef

View file

@ -45,13 +45,15 @@ property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
gchar *str = 0; gchar *str = 0;
/* let's not print these out for the offset property... */ /* let's not print these out for the offset property... */
if (pspec->flags & G_PARAM_READABLE && strcmp (pspec->name, "offset") != 0) { if (pspec->flags & G_PARAM_READABLE) {
g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec)); if (strcmp (pspec->name, "offset") != 0) {
g_object_get_property (G_OBJECT (orig), pspec->name, &value); g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
str = g_strdup_value_contents (&value); g_object_get_property (G_OBJECT (orig), pspec->name, &value);
g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str); str = g_strdup_value_contents (&value);
g_free (str); g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str);
g_value_unset(&value); g_free (str);
g_value_unset(&value);
}
} else { } else {
g_warning ("Parameter not readable. What's up with that?"); g_warning ("Parameter not readable. What's up with that?");
} }