Getting pad templates for request pads

Adam Goodwin at
Fri Aug 2 08:08:20 PDT 2013

Hi again,

I'm using some tee elements which have request pads, and I'm going to link
these to the request pads of a matroskamux. What I'm wanting to do is
request these pads by name (e.g. "src_%d"), but I see that the function
"gst_element_get_request_pad()" is to be deprecated. That function was how
the example in the GStreamer Application Development Manual does it.

The core reference manual says I should use "gst_element_request_pad()"
instead. This is fine, but it needs a GstPadTemplate as an argument. It
seems that the way to get one of these is with the function
"gst_element_class_get_pad_template()". The problem is this function needs
a GstElementClass, and I'm now stuck because I don't know how to get one of

I would have guessed that there's some way to cast my tee GstElement to a
GstElementClass (or otherwise get its corresponding GstElementClass) but I
don't know how this is done.

Can someone point me in the right direction?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list