mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
gstobject: don't use g_strdup_value_contents()
g_strdup_value_contents() does some extra escaping, preventing us from using the output on the console to be used directly.
This commit is contained in:
parent
ee346fbad6
commit
e288ac7913
1 changed files with 1 additions and 13 deletions
|
@ -507,19 +507,7 @@ gst_object_default_deep_notify (GObject * object, GstObject * orig,
|
|||
g_value_init (&value, pspec->value_type);
|
||||
g_object_get_property (G_OBJECT (orig), pspec->name, &value);
|
||||
|
||||
/* FIXME: handle flags */
|
||||
if (G_IS_PARAM_SPEC_ENUM (pspec)) {
|
||||
GEnumValue *enum_value;
|
||||
GEnumClass *klass = G_ENUM_CLASS (g_type_class_ref (pspec->value_type));
|
||||
|
||||
enum_value = g_enum_get_value (klass, g_value_get_enum (&value));
|
||||
|
||||
str = g_strdup_printf ("%s (%d)", enum_value->value_nick,
|
||||
enum_value->value);
|
||||
g_type_class_unref (klass);
|
||||
} else {
|
||||
str = g_strdup_value_contents (&value);
|
||||
}
|
||||
str = gst_value_serialize (&value);
|
||||
name = gst_object_get_path_string (orig);
|
||||
g_print ("%s: %s = %s\n", name, pspec->name, str);
|
||||
g_free (name);
|
||||
|
|
Loading…
Reference in a new issue