can't connect the "decodebin" to pipeline

Sebastian Dröge sebastian at centricular.com
Wed Mar 26 01:06:11 PDT 2014


On Mi, 2014-03-26 at 00:40 -0700, Dudi.r wrote:
> [...]
>   src = gst_element_factory_make ("filesrc", "src"); 
>   decbin=gst_element_factory_make ("decodebin2", "decbin"); 
> [...]
>   if (gst_element_link_many ( src, decbin, encoder, rtppay , sink, NULL) !=
> TRUE)    

decodebin has so-called sometimes pads. You have to wait until they are
added on the element and only then can connect them further.

See the documentation about the pad-added signal in GstElement and 
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-pads.html#section-pads-dynamic

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140326/61d10b24/attachment.sig>


More information about the gstreamer-devel mailing list