X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstdebugutils.c;h=b76c948f5c341d1950b59f1cae424655c924f175;hb=1dd72f56eada174a5764015f4d3b157a6243b9a0;hp=06d3469371786b30f0f1237e082389ad92ca1bf8;hpb=373af462db3a0d614337011e213eeccb593a0094;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 06d3469..b76c948 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -357,17 +357,19 @@ debug_dump_describe_caps (GstCaps * caps, GstDebugGraphDetails details) str = g_string_sized_new (slen); for (i = 0; i < gst_caps_get_size (caps); i++) { + GstCapsFeatures *features = __gst_caps_get_features_unchecked (caps, i); GstStructure *structure = gst_caps_get_structure (caps, i); - const GstCapsFeatures *features = gst_caps_get_features (caps, i); - gchar *features_name = gst_caps_features_to_string (features); - g_string_append (str, gst_structure_get_name (structure)); - g_string_append (str, "("); - g_string_append (str, features_name); - g_string_append (str, ")\\l"); - g_free (features_name); + if (features && (gst_caps_features_is_any (features) + || !gst_caps_features_is_equal (features, + GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY))) { + g_string_append_c (str, '('); + priv_gst_caps_features_append_to_gstring (features, str); + g_string_append_c (str, ')'); + } + g_string_append (str, "\\l"); gst_structure_foreach (structure, string_append_field, (gpointer) str); }