Commit 70a7f6e7 authored by Thibault Saunier's avatar Thibault Saunier 🌵

info: Use NO_CAST to serialize structures/caps

Making them simpler to read for debugging purposes.
parent 60ea8cde
Pipeline #247885 waiting for manual action with stages
in 1 minute and 12 seconds
......@@ -618,7 +618,9 @@ static inline gchar *
gst_info_structure_to_string (const GstStructure * s)
{
if (G_LIKELY (s)) {
gchar *str = gst_structure_to_string (s);
gchar *str =
gst_structure_serialize (s, GST_SERIALIZE_FLAG_SKIP_DEFAULT_TYPES);
if (G_UNLIKELY (pretty_tags && s->name == GST_QUARK (TAGLIST)))
return prettify_structure_string (str);
else
......@@ -731,7 +733,7 @@ gst_info_describe_stream (GstStream * stream)
caps = gst_stream_get_caps (stream);
if (caps) {
caps_str = gst_caps_to_string (caps);
caps_str = gst_caps_serialize (caps, GST_SERIALIZE_FLAG_SKIP_DEFAULT_TYPES);
gst_caps_unref (caps);
}
......@@ -801,7 +803,8 @@ gst_debug_print_object (gpointer ptr)
return g_strdup ("(NULL)");
}
if (GST_IS_CAPS (ptr)) {
return gst_caps_to_string ((const GstCaps *) ptr);
return gst_caps_serialize ((const GstCaps *) ptr,
GST_SERIALIZE_FLAG_SKIP_DEFAULT_TYPES);
}
if (GST_IS_STRUCTURE (ptr)) {
return gst_info_structure_to_string ((const GstStructure *) ptr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment