<div dir="ltr">Hi Adrian,<br> I think your example is different from mine because you are not changing the state of the src elements.<br> I' ve followed this to achieve my pipeline =><a href="http://gstreamer-devel.966125.n4.nabble.com/change-quot-location-quot-of-filesrc-element-without-breaking-tcpserversink-connection-tt4661248.html#a4661273" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/change-quot-location-quot-of-filesrc-element-without-breaking-tcpserversink-connection-tt4661248.html#a4661273</a>.<br>
And it works fine! But my program has crashed from time to time. (When i've tried to change two src at aprox the same time, apparently one state change<br>
affects the others, so I need a mutex I Suppose)<br><br>Sebastian, I've Tried using gst_element_set_locked_state, but seeing the logs I am still viewing that my the elements post messages like:<br><br>child 'img_src_bkg_src' changed state to 3(PAUSED) successfully<br>
<br>I will keep trying.<br><br>Thanks a lot for your answers!<br><div><br><div><div><br><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
normally you would block the pads, unlink the element and then put it<br>
on another pipeline (or just remove it from the main until it's needed<br>
again) so it is not affected by the state changes on the main pipeline<br>
of your program. Something like what is shown here:<br>
<a href="http://groakat.wordpress.com/2012/12/05/gstreamer-stream-h264-webcam-data-to-series-of-files/" target="_blank">http://groakat.wordpress.com/2012/12/05/gstreamer-stream-h264-webcam-data-to-series-of-files/</a><br>
(but that use case is a bit different). Keep in mind that some<br>
elements don't really like to be reused so perhaps removing and adding<br>
a fresh one is the way to go. Let me know if you need a hand.<br>
<br>
Best regards.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div></div></div></div></div>