mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
Get rid of the warning
Original commit message from CVS: Get rid of the warning
This commit is contained in:
parent
213703ed1b
commit
06c7e989ef
1 changed files with 9 additions and 7 deletions
|
@ -45,13 +45,15 @@ property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
|
|||
gchar *str = 0;
|
||||
|
||||
/* let's not print these out for the offset property... */
|
||||
if (pspec->flags & G_PARAM_READABLE && strcmp (pspec->name, "offset") != 0) {
|
||||
g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
|
||||
g_object_get_property (G_OBJECT (orig), pspec->name, &value);
|
||||
str = g_strdup_value_contents (&value);
|
||||
g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str);
|
||||
g_free (str);
|
||||
g_value_unset(&value);
|
||||
if (pspec->flags & G_PARAM_READABLE) {
|
||||
if (strcmp (pspec->name, "offset") != 0) {
|
||||
g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
|
||||
g_object_get_property (G_OBJECT (orig), pspec->name, &value);
|
||||
str = g_strdup_value_contents (&value);
|
||||
g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str);
|
||||
g_free (str);
|
||||
g_value_unset(&value);
|
||||
}
|
||||
} else {
|
||||
g_warning ("Parameter not readable. What's up with that?");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue