rtmp2src: workaround a GLib race when destroying a GMainContext/GSource
requested to merge ystreet/gst-plugins-bad:rtmp2src-workaround-glib-maincontext-source-race into master
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.
Edited by Matthew Waters