<div dir="ltr"><div><div><div>Hi again!<br><br></div>I've tried a lot of variants with this setup. Right now I have:<br><br> if msgType == Gst.MessageType.ERROR or msgType == Gst.MessageType.EOS:<br>            streamer.sink.emit('clear')<br>            streamer.pipeline.set_state(Gst.State.NULL)<br>            streamer.pipeline.get_state(timeout=10*Gst.SECOND)<br><br></div>It sometimes fails with :<br><br>авг 18 12:26:24 archive4 videoserver.py[9608]: (python:9608): GStreamer-CRITICAL **:<br>авг 18 12:26:24 archive4 videoserver.py[9608]: Trying to dispose element manager, but it is in PLAYING (locked) instead of the NULL state.<br><br><br></div>streamer.sink is a tcpserversink element which I strip from all clients at pipeline shutdown/<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-31 12:04 GMT+03:00 Dirk-Jan C. Binnema <span dir="ltr"><<a href="mailto:djcb.bulk@gmail.com" target="_blank">djcb.bulk@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> I would like to bump my question<br>
<br>
</span>There is no "bump" here.<br>
<span class=""><br>
>>> I get a really annoying bug while using gstreamer on python. :<br>
>>><br>
>>><br>
>>> GStreamer-CRITICAL **:<br>
>>> июл 26 16:09:44 archive1 distributor.py[5954]: Trying to dispose element<br>
>>> queue9, but it is in PLAYING instead of the NULL state.<br>
<br>
</span>Typically, you get such errors when disposing (freeing) your pipeline<br>
when it's not in NULL state yet, just as the error says - ie., you need<br>
to give GStreamer a chance to go through the state-changes to reach NULL<br>
before disposing your pipeline and its elements.<br>
<br>
One way to do that is to use (the Python equivalent of) a blocking<br>
gst_element_get_state after you set the state.<br>
<br>
Cheers,<br>
Dirk.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirk-Jan C. Binnema                  Helsinki, Finland<br>
<a href="mailto:e%3Adjcb@djcbsoftware.nl">e:djcb@djcbsoftware.nl</a>           w:<a href="http://www.djcbsoftware.nl" rel="noreferrer" target="_blank">www.djcbsoftware.nl</a><br>
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</font></span></blockquote></div><br></div>