Gstreamer critical on pipeline.set_state(Gst.State.NULL)

Dirk-Jan C. Binnema djcb.bulk at gmail.com
Sun Jul 31 09:04:12 UTC 2016


> I would like to bump my question

There is no "bump" here. 

>>> I get a really annoying bug while using gstreamer on python. :
>>>
>>>
>>> GStreamer-CRITICAL **:
>>> июл 26 16:09:44 archive1 distributor.py[5954]: Trying to dispose element
>>> queue9, but it is in PLAYING instead of the NULL state.

Typically, you get such errors when disposing (freeing) your pipeline
when it's not in NULL state yet, just as the error says - ie., you need
to give GStreamer a chance to go through the state-changes to reach NULL
before disposing your pipeline and its elements.

One way to do that is to use (the Python equivalent of) a blocking
gst_element_get_state after you set the state.

Cheers,
Dirk.

-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb at djcbsoftware.nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C


More information about the gstreamer-devel mailing list