<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>Hi,</div><div>I have a pipeline like&nbsp;</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="position:fixed"></div>


</div><br>




      </body></html>