mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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_string_append (s, t);
|
||||||
g_free (t);
|
g_free (t);
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING ("No value transform to serialize field '%s' of type '%s'",
|
if (!G_TYPE_CHECK_VALUE_TYPE (&field->value, G_TYPE_STRING) &&
|
||||||
g_quark_to_string (field->name),
|
!(G_TYPE_CHECK_VALUE_TYPE (&field->value, G_TYPE_POINTER) &&
|
||||||
_priv_gst_value_gtype_to_abbr (type));
|
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");
|
g_string_append (s, "NULL");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue