mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
tools: gst-inspect: don't print internal pad request function name
This just confuses people, they look at it and try to call it directly by name, instead of using the public GstElement API. It stands to reason that it goes without saying that when an element provides request pads that they can actually be requested using the standard API, and there's no point in printing internal implementation details of the element.
This commit is contained in:
parent
4714ef2f8e
commit
3cae933579
1 changed files with 0 additions and 5 deletions
|
@ -541,7 +541,6 @@ print_element_properties_info (GstElement * element)
|
||||||
static void
|
static void
|
||||||
print_pad_templates_info (GstElement * element, GstElementFactory * factory)
|
print_pad_templates_info (GstElement * element, GstElementFactory * factory)
|
||||||
{
|
{
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
const GList *pads;
|
const GList *pads;
|
||||||
GstStaticPadTemplate *padtemplate;
|
GstStaticPadTemplate *padtemplate;
|
||||||
|
|
||||||
|
@ -551,8 +550,6 @@ print_pad_templates_info (GstElement * element, GstElementFactory * factory)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gstelement_class = GST_ELEMENT_CLASS (G_OBJECT_GET_CLASS (element));
|
|
||||||
|
|
||||||
pads = gst_element_factory_get_static_pad_templates (factory);
|
pads = gst_element_factory_get_static_pad_templates (factory);
|
||||||
while (pads) {
|
while (pads) {
|
||||||
padtemplate = (GstStaticPadTemplate *) (pads->data);
|
padtemplate = (GstStaticPadTemplate *) (pads->data);
|
||||||
|
@ -571,8 +568,6 @@ print_pad_templates_info (GstElement * element, GstElementFactory * factory)
|
||||||
n_print (" Availability: Sometimes\n");
|
n_print (" Availability: Sometimes\n");
|
||||||
else if (padtemplate->presence == GST_PAD_REQUEST) {
|
else if (padtemplate->presence == GST_PAD_REQUEST) {
|
||||||
n_print (" Availability: On request\n");
|
n_print (" Availability: On request\n");
|
||||||
n_print (" Has request_new_pad() function: %s\n",
|
|
||||||
GST_DEBUG_FUNCPTR_NAME (gstelement_class->request_new_pad));
|
|
||||||
} else
|
} else
|
||||||
n_print (" Availability: UNKNOWN!!!\n");
|
n_print (" Availability: UNKNOWN!!!\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue