bus: change GstBusSource to hold a weak ref to GstBus
authorThiago Santos <thiagoss@osg.samsung.com>
Wed, 24 Feb 2016 13:56:24 +0000 (10:56 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 25 Feb 2016 17:08:50 +0000 (14:08 -0300)
commit894c67e642c0f858b5b18097fa7c995bf3cc50c1
treee617b62665f6ef6f297165b5a73e4bad3e8e4e71
parente953f2078674497875c0befc2dddac31034978b8
bus: change GstBusSource to hold a weak ref to GstBus

When holding a regular ref it will cause the GstBus to never
reach 0 references and it won't be destroyed unless the application
explicitly calls gst_bus_remove_signal_watch().

Switching to weakref will allow the GstBus to be destroyed.
The application is still responsible for destroying the
GSource.

https://bugzilla.gnome.org/show_bug.cgi?id=762552
gst/gstbus.c
tests/check/gst/gstpipeline.c