diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 43d809ce10..8f37f43311 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -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);