Remove bus watch when tearing down pipeline

Guillermo Rodriguez Garcia guille.rodriguez at gmail.com
Wed Sep 2 09:21:38 UTC 2020


Hi Sebastian,

El mié., 2 sept. 2020 a las 11:05, Sebastian Dröge
(<sebastian at centricular.com>) escribió:
>
> On Wed, 2020-09-02 at 10:09 +0200, Guillermo Rodriguez Garcia wrote:
> >
> > When I tear down the pipeline (by setting its state to NULL, and then
> > calling gst_object_unref(pipeline), do I need to explicitly remove
> > the bus watch to prevent resource leaks?
> >
> > I understood that this was not necessary and that the bus watch
> > should be destroyed automatically, together with the bus.
>
> If you don't explicitly destroy it then it will still be attached to
> the GMainContext until that is freed (which will never happen if you
> use the global default one).

Thank you very much.
I was confused by this:
https://lists.freedesktop.org/archives/gstreamer-devel/2015-August/054038.html

Thanks,

Guillermo Rodriguez Garcia
guille.rodriguez at gmail.com


More information about the gstreamer-devel mailing list