gstreamer pad negotiation query
Mayank Agarwal
mayank77fromindia at gmail.com
Mon Dec 8 02:09:10 PST 2014
Hi,
I am using the following piece of code for pad negotiation:
GstPad* src_pad = gst_pad_new_from_static_template (&srctemplate, "src");
gst_pad_set_getcaps_function (src_pad,GST_DEBUG_FUNCPTR(gst_pad_proxy_getcaps));
gst_element_add_pad (GST_ELEMENT (src), src_pad);
But i am getting below errors on doing this:
gstavfilesrc.c:278:5: warning: implicit declaration of function
'gst_pad_set_getcaps_function' [-Wimplicit-function-declaration]
gstavfilesrc.c:278:43: error: 'gst_pad_proxy_getcaps' undeclared
(first use in this function)
gstavfilesrc.c:278:43: note: each undeclared identifier is reported
only once for each function it appears in
gstavfilesrc.c:278:43: warning: left-hand operand of comma expression
has no effect [-Wunused-value]
I found out that the above is outdated in gstreamer-1.0 and we need to
use GST_QUERY_CAPS
But i am new to gstreamer and don't have much idea of apis
Please guide how can i replace
gst_pad_set_getcaps_function (src_pad,GST_DEBUG_FUNCPTR(gst_pad_proxy_getcaps));
to GST_QUERY_CAPS.
Regards
Mayank
More information about the gstreamer-devel
mailing list