[gst-devel] Re : cannot link elements in pipeline

Albert Costa costa_albert at yahoo.fr
Thu Mar 25 17:58:03 CET 2010

I did find my error, I needed to set a callback for pad added of the demuxer, and link it to the decoder sink inside the function. This works fine, a first frame is displayed but then... nothing happens. It just does halt and no more process is carried on. 
What could be the problem?

De : Albert Costa <costa_albert at yahoo.fr>
À : gstreamer <gstreamer-devel at lists.sourceforge.net>
Envoyé le : Jeu 25 mars 2010, 16 h 29 min 52 s
Objet : [gst-devel] cannot link elements in pipeline

I have a pipeline like 
gst-launch filesrc location=myvideo ! mpegtsdemux ! ffdec_mpeg2video ! ffmpegcolorspace ! directdrawsink
This works fine in command line.
I wanted to put it in a program where I build elements, add them to a pipeline element, and link them together. Everything works fine until I try to link mpegtsdemux and ffdec_mpeg2video together : the result of gst_element_link_pads(demuxer, NULL, decoder, NULL) is false. What kind of thing am I doing wrong? should I give precise pad template names for these elements? I don't want to use a decodebin element for specific reasons (which I successfully already passed on), I just want to have this pipeline.
Thanks for any advice,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100325/b56611ef/attachment.htm>

More information about the gstreamer-devel mailing list