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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5604>
This commit is contained in:
Fabian Orccon 2023-11-05 16:13:10 +01:00 committed by GStreamer Marge Bot
parent 5d2d602e4a
commit b3245aff28

View file

@ -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: