diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-01 10:20:01 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-01 10:20:01 +0200 |
commit | f810565ca71a37d09e819b9bdfa0404980077571 (patch) | |
tree | c0d070cb55b437aef609f0004cba6d2c302b5dee | |
parent | a838e5aa75f037bd78fdc17ce53bdd6695a1dc6e (diff) |
gst-inspect: Print caps features too
-rw-r--r-- | tools/gst-inspect.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 777705bdc..750fded49 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -81,8 +81,19 @@ print_caps (const GstCaps * caps, const gchar * pfx) for (i = 0; i < gst_caps_get_size (caps); i++) { GstStructure *structure = gst_caps_get_structure (caps, i); + GstCapsFeatures *features = gst_caps_get_features (caps, i); - n_print ("%s%s\n", pfx, gst_structure_get_name (structure)); + if (features + && !gst_caps_features_is_equal (features, + GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY)) { + gchar *features_string = gst_caps_features_to_string (features); + + n_print ("%s%s(%s)\n", pfx, gst_structure_get_name (structure), + features_string); + g_free (features_string); + } else { + n_print ("%s%s\n", pfx, gst_structure_get_name (structure)); + } gst_structure_foreach (structure, print_field, (gpointer) pfx); } } |