<div dir="ltr"><div><div><div><div><div>Right now I'm dealing with an issue in my dynamic pipelines. As part of a robustness check, I've been adding and removing one leg of an output teeĀ  to/from a playing pipeline as fast as I can, to ensure all of my locks and such are solid.<br><br></div>What I'm finding is happening is that gst_element_sync_to_parent is returning TRUE before the actual synchronization is finished. I've also tried with gst_element_set_state and gst_element_get_state but I'm finding that what is happening is that I'm getting a 'successful' return before the state change is finalized!<br><br></div>In fact, what seems to happen is that the parent bin which was in state PLAYING when I started the sync, is in state PAUSED (pending PLAYING) as is the bin which I am attempting to sync.<br><br></div>What I was expecting, of course, is for the two of them to be in state PLAYING.<br><br></div>What is worse, when I go to remove the bin again, my attempt to transition to NULL state fails, as its still in transition to PLAYING state. And so I get this mysterious error:<br><br>(vaal:2751): GStreamer-CRITICAL **: <br>Trying to dispose element xvsink_04, but it is in PAUSED instead of the NULL state.<br>You need to explicitly set elements to the NULL state before<br>dropping the final reference, to allow them to clean up.<br>This problem may also be caused by a refcounting bug in the<br>application or some element.<br><br><br></div>I'm fairly sure this is not how GStreamer 1.2.0 behaved, but I've yet to go back and check.<br><br><div><br><br><div><div><div><div><br clear="all"><div><div><br>-- <br><div class="gmail_signature">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></div></div></div></div></div>