From ce4d3355e151ddfd055450000ea293b7a089ed33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 18 Feb 2015 11:22:21 +0200 Subject: [PATCH] vaapidecode: Use GST_DEBUG_FUNCPTR for gst_vaapidecode_query() Hence the function name is shown in the gst-inspect-1.0 information rather than the memory address. https://bugzilla.gnome.org/show_bug.cgi?id=744330 --- gst/vaapi/gstvaapidecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 38afb31981..1513e33483 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -1032,12 +1032,12 @@ gst_vaapidecode_init(GstVaapiDecode *decode) /* Pad through which data comes in to the element */ pad = GST_VAAPI_PLUGIN_BASE_SINK_PAD(decode); - gst_pad_set_query_function(pad, gst_vaapidecode_query); + gst_pad_set_query_function(pad, GST_DEBUG_FUNCPTR(gst_vaapidecode_query)); #if !GST_CHECK_VERSION(1,0,0) gst_pad_set_getcaps_function(pad, gst_vaapidecode_get_caps); #endif /* Pad through which data goes out of the element */ pad = GST_VAAPI_PLUGIN_BASE_SRC_PAD(decode); - gst_pad_set_query_function(pad, gst_vaapidecode_query); + gst_pad_set_query_function(pad, GST_DEBUG_FUNCPTR(gst_vaapidecode_query)); }