glcontext: fix race between creation/shutdown
authorMatthew Waters <matthew@centricular.com>
Mon, 28 Nov 2016 03:19:18 +0000 (14:19 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 28 Nov 2016 03:27:03 +0000 (14:27 +1100)
commit25fbc6d877b81fb5cd2731edc01d05bf900420dc
treedfdba08f3a7f041004384ea53b1070ddbfa314be
parent2f87392ee7962c02922befc7ec1790e729bb010d
glcontext: fix race between creation/shutdown

626bcccff96f624f59c5212b3e21e472240171fd removed some locks that
allowed the main loop quit to occur before the context was fully
created.

2776cef25d2a98668b73272aecfe77e684e6627e attempted to readd them but
missed the scop of the quit() call.

Also remove the use of g_thread_join() as that's not safe to use when
it's possible to lose the last reference from the GL thread.

https://bugzilla.gnome.org/show_bug.cgi?id=775171
gst-libs/gst/gl/gstglcontext.c