Problem creating a request pad for a tee element

Arun Raghavan arun at arunraghavan.net
Wed May 11 09:49:50 UTC 2016


On Wed, 11 May 2016, at 02:25 PM, sant1mb wrote:
> When I try to execute the following code, i get this error:
> 
> (mp3extract2:3753): GStreamer-CRITICAL **: gst_element_request_pad:
> assertion 'templ != NULL' failed
[...]

This problem cascades into subsequent problems. You need to make sure
that the template you're trying to get is non-NULL.

> I use this code from a tutorial but it doesn't work
> 
> tee_src_pad_template = gst_element_class_get_pad_template
> (GST_ELEMENT_GET_CLASS (tee), "src%d");

Looks like you're using example code from GStreamer 0.10 (which is no
longer supported). In GStreamer 1.0, this is src_%u.

-- Arun


More information about the gstreamer-devel mailing list