mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
5d2d602e4a
commit
b3245aff28
1 changed files with 0 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue