rtmp2src: workaround a GLib race when destroying a GMainContext/GSource
authorMatthew Waters <matthew@centricular.com>
Tue, 13 Jul 2021 11:38:10 +0000 (21:38 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 15 Jul 2021 04:10:04 +0000 (14:10 +1000)
commitfdca97eca839d4e6c365ab98e8f8f6d877f860f1
tree3fadccb46bd71e00e32a3c74783dea23840b39c7
parentbc6b68215f1a9a83a3018fb351451701e22ec0ce
rtmp2src: workaround a GLib race when destroying a GMainContext/GSource

https://gitlab.gnome.org/GNOME/glib/-/issues/803

Basically, if destruction of a GSource and its associated GMainContext are
not synchronised, Then the GSource destruction can access freed
GMainContext resources and cause a crash.  This is not super common but
can happen.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2405>
gst/rtmp2/gstrtmp2src.c