<div dir="ltr"><div><div>I have a complex program that wants to be able to create new output sinks on the fly, while a video is playing. At any one time we can have anywhere from zero to 15 outputs, each with its own postprocessing pipeline.<br>
<br>However, I've run into all sorts of troubles trying to get dynamically added sinks to work. Finally, I decided to write a much, much simpler test program that just alternatively adds and removes a single output, and I can't get it to work. The video claims to be playing, but the output is always frozen.<br>
<br></div>The basic idea of the test program is that I have this pipeline already running:<br><br> gst-launch videotestsrc ! tee name=t t. ! queue ! fakesink<br><br></div>And I mutate it dynamically into this pipeline.<br clear="all">
<div><div><div><br> gst-launch videotestsrc ! tee name=t t. ! queue ! fakesink t. ! queue ! xvimagesink display=:0<br><br></div><div>The idea is that the test program will alternately add or remove the xvimagesink every few seconds, but this fails to work. Any help/suggestions/criticism of my code would be most welcome. It can be found here:<br>
<br> <a href="http://pastebin.com/fSuHdHVJ">http://pastebin.com/fSuHdHVJ</a><br><br></div><div><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br>
<a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div></div></div>