mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
structure: Don't print warning on NULL strings or pointers
Putting NULL for those is a valid serialization for the NULL value.
This commit is contained in:
parent
c173771ed2
commit
0b9eb621b6
1 changed files with 6 additions and 3 deletions
|
@ -1823,9 +1823,12 @@ priv_gst_structure_append_to_gstring (const GstStructure * structure,
|
|||
g_string_append (s, t);
|
||||
g_free (t);
|
||||
} else {
|
||||
GST_WARNING ("No value transform to serialize field '%s' of type '%s'",
|
||||
g_quark_to_string (field->name),
|
||||
_priv_gst_value_gtype_to_abbr (type));
|
||||
if (!G_TYPE_CHECK_VALUE_TYPE (&field->value, G_TYPE_STRING) &&
|
||||
!(G_TYPE_CHECK_VALUE_TYPE (&field->value, G_TYPE_POINTER) &&
|
||||
g_value_get_pointer (&field->value) == NULL))
|
||||
GST_WARNING ("No value transform to serialize field '%s' of type '%s'",
|
||||
g_quark_to_string (field->name),
|
||||
_priv_gst_value_gtype_to_abbr (type));
|
||||
g_string_append (s, "NULL");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue