mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
inspect: pad info output improvements
Don't print empty query types. Also print caps-vmethods.
This commit is contained in:
parent
c94fbb5594
commit
330f308c3d
1 changed files with 20 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue