inspect: pad info output improvements

Don't print empty query types. Also print caps-vmethods.
This commit is contained in:
Stefan Kost 2010-07-05 16:32:00 +03:00
parent c94fbb5594
commit 330f308c3d

View file

@ -811,8 +811,11 @@ print_pad_info (GstElement * element)
n_print (" Has custom queryfunc(): %s\n",
GST_DEBUG_FUNCPTR_NAME (pad->queryfunc));
if (pad->querytypefunc != gst_pad_get_query_types_default) {
n_print (" Provides query types:\n");
print_query_types (gst_pad_get_query_types (pad));
const GstQueryType *query_types = gst_pad_get_query_types (pad);
if (query_types) {
n_print (" Provides query types:\n");
print_query_types (query_types);
}
}
if (pad->iterintlinkfunc != gst_pad_iterate_internal_links_default)
@ -823,6 +826,21 @@ print_pad_info (GstElement * element)
n_print (" Has bufferallocfunc(): %s\n",
GST_DEBUG_FUNCPTR_NAME (pad->bufferallocfunc));
if (pad->getcapsfunc)
n_print (" Has getcapsfunc(): %s\n",
GST_DEBUG_FUNCPTR_NAME (pad->getcapsfunc));
if (pad->setcapsfunc)
n_print (" Has setcapsfunc(): %s\n",
GST_DEBUG_FUNCPTR_NAME (pad->setcapsfunc));
/* gst_pad_acceptcaps_default is static :/ */
if (pad->acceptcapsfunc)
n_print (" Has acceptcapsfunc(): %s\n",
GST_DEBUG_FUNCPTR_NAME (pad->acceptcapsfunc));
if (pad->fixatecapsfunc)
n_print (" Has fixatecapsfunc(): %s\n",
GST_DEBUG_FUNCPTR_NAME (pad->fixatecapsfunc));
if (pad->padtemplate)
n_print (" Pad Template: '%s'\n", pad->padtemplate->name_template);