gstreamer/gst-libs/gst/gl/eagl
Matthew Waters 51b057ea26 glcontext/eagl: handle sending one message during shutdown
gst_gl_window_quit() will attempt to send a message but will be called
from GstGLContext's finalize handler and so the weak ref that backs
gst_gl_window_get_context will return NULL as it has already been
cleared.  We need that context in send_message_async to decide whether
to run the provided callback immediately or queue in GCD

This is the equivalent commit for iOS as:
7f59cefafb
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/618

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/681>
2020-06-02 14:32:03 +10:00
..
gstglcontext_eagl.h gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglcontext_eagl.m gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglios_utils.h gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglwindow_eagl.h gl/eagl: don't access UIkit objects on the main thread 2020-06-02 14:32:03 +10:00
gstglwindow_eagl.m glcontext/eagl: handle sending one message during shutdown 2020-06-02 14:32:03 +10:00