<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>Hello people,</DIV>
<DIV>I am writing/testing to build&nbsp;a small application where I have 2 possible source pipelines for a sink. For example, I would have (if I translate to command line):</DIV>
<DIV>gst-launch filesrc location=myfile.avi ! decodebin ! ffmpegcolorspace ! directdrawsink and at some time I want to switch to videotestsrc ! ffmpegcolorspace ! directdrawsink (and vice-versa)</DIV>
<DIV>That is, I either get my frames from the (filesrc+decodebin) or the (videotestsrc) elements.</DIV>
<DIV>Is there a way to keep 2 such 'subpipelines' created, while only one is currently linked to the sink? </DIV>
<DIV>- If I create and add all the elements to the main pipeline but only link one branch, I get ofcourse a 'nonlinked' error for the other branch. </DIV>
<DIV>- If I create all, but only add the branch I use (with gst_bin_add_many), then remove the branch (with gst_bin_remove_many) and add the new one it works.&nbsp;But if I want to revert again, then the elements that got removed in the first place cannot be added again.</DIV>
<DIV>Is there a way to keep a bunch of elements such that I can add/remove them from the pipeline anytime I want (without having to recreate them) ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best Regards,</DIV>
<DIV>Al</DIV></div><br>



      </body></html>