Proper way to clean up a GstPipeline
Alexander Sack
pisymbol at gmail.com
Fri Jan 22 21:00:45 UTC 2021
Hello all:
Really simple, dumb question:
For all of my pipelines, I shutdown/clean like so:
pipeline.state = Gst.NULL
pipeline = None
But I just read here:
https://gstreamer.freedesktop.org/documentation/gstreamer/gstpipeline.html?gi-language=python
I should also include a pipeline.unref()? But that yields things like:
(foobar:20365): GStreamer-CRITICAL **: 15:56:51.646: gst_object_unref:
assertion '((GObject *) object)->ref_count > 0' failed
What is the official/correct way to completely clean-up a pipeline from
within a Python application? The pipeline is created using parse() (and the
pipeline has been validated witih gst-launcher-1.0).
Also, if I don't care about EOS can't I just clean up the pipeline without
handling any bus messages (think a viewer where capturing any flushed out
frames is immaterial and I just want to close immediately and free all
resources).
Thanks!
-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210122/cae26542/attachment.htm>
More information about the gstreamer-devel
mailing list