bus: Make removing of signal/bus watches thread-safe
authorSebastian Dröge <sebastian@centricular.com>
Fri, 15 Feb 2019 11:23:37 +0000 (13:23 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 15 Feb 2019 11:23:37 +0000 (13:23 +0200)
commit2108c6228a7216260ebe561bee96b0e58da89e3a
treeedb14ecb9c49bbe20f5438ea66d155a9bc891f34
parent8de3344ecc50b5ffb88ba2a491ce4c7ab4a13e40
bus: Make removing of signal/bus watches thread-safe

Between getting the GSource with the mutex and destroying it, something
else might've destroyed it already and we would have a dangling pointer.

Keep an additional reference just in case.
gst/gstbus.c