<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>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. </div><div>What could be the problem?</div><div>Regards,</div><div>Al</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Albert Costa <costa_albert@yahoo.fr><br><b><span style="font-weight: bold;">À :</span></b> gstreamer <gstreamer-devel@lists.sourceforge.net><br><b><span style="font-weight: bold;">Envoyé
le :</span></b> Jeu 25 mars 2010, 16 h 29 min 52 s<br><b><span style="font-weight: bold;">Objet :</span></b> [gst-devel] cannot link elements in pipeline<br></font><br><div style="font-family:times, serif;font-size:12pt;"><div>Hi,</div><div>I have a pipeline like </div><div>gst-launch filesrc location=myvideo ! mpegtsdemux ! ffdec_mpeg2video ! ffmpegcolorspace ! directdrawsink</div><div>This works fine in command line.</div><div>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.</div><div>Thanks for any advice,</div><div>Regards,</div><div>Al</div><div style=""></div>
</div><br>
</div></div><div style="position:fixed"></div>
</div><br>
</body></html>