bus: destroy signal watch from the context it was mapped to
authorPhilippe Normand <philn@igalia.com>
Wed, 13 Aug 2014 12:12:00 +0000 (14:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 13 Aug 2014 15:44:39 +0000 (18:44 +0300)
commitb1f23598099da82835df60bc2fb09501233f9118
tree0609f3124964af64d8f1bb793d6336d333717b3d
parent78e22645444fa3784e0bcf4e2b1d0858be3af4fb
bus: destroy signal watch from the context it was mapped to

Don't rely on g_source_remove() because it operates on the main
context. If a signal watch was added to a new thread-default context
g_source_remove() would have no effect. So simply use
g_source_destroy() to avoid this problem.

Additionally the source_id was removed from GstBusPrivate because it
was redundant with the signal watch GSource also stored in that
structure.

https://bugzilla.gnome.org/show_bug.cgi?id=734716
gst/gstbus.c