From b3245aff28540064db42999e1a666908007e73c9 Mon Sep 17 00:00:00 2001 From: Fabian Orccon Date: Sun, 5 Nov 2023 16:13:10 +0100 Subject: [PATCH] gst-inspect: Remove current caps print At GST_STATE_NULL, all pads are deactivated and have no caps. It can be observed with `gst-inspect-1.0 -a` that no element is reaching this removed code. Part-of: --- subprojects/gstreamer/tools/gst-inspect.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/subprojects/gstreamer/tools/gst-inspect.c b/subprojects/gstreamer/tools/gst-inspect.c index c91219e4dd..7b72c93e96 100644 --- a/subprojects/gstreamer/tools/gst-inspect.c +++ b/subprojects/gstreamer/tools/gst-inspect.c @@ -997,7 +997,6 @@ print_pad_info (GstElement * element) pads = element->pads; while (pads) { gchar *name; - GstCaps *caps; pad = GST_PAD (pads->data); pads = g_list_next (pads); @@ -1021,15 +1020,6 @@ print_pad_info (GstElement * element) PROP_VALUE_COLOR, pad->padtemplate->name_template, RESET_COLOR); pop_indent (); } - - caps = gst_pad_get_current_caps (pad); - if (caps) { - n_print ("%sCapabilities:%s\n", PROP_NAME_COLOR, RESET_COLOR); - push_indent (); - print_caps (caps, ""); // FIXME - pop_indent (); - gst_caps_unref (caps); - } } done: