gl/cocoa: don't deadlock if the dispatch_sync is called from the main thread
authorMatthew Waters <matthew@centricular.com>
Tue, 17 Feb 2015 07:17:59 +0000 (18:17 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 17 Feb 2015 08:45:35 +0000 (19:45 +1100)
commit0fd6872f7d831c11e59d203695ff8d3c0d355b83
treeea2e79713ced98ae7287183121d05498fcdcaae6
parent96398e5bac3032d218dcd014b3ad657279efb9bb
gl/cocoa: don't deadlock if the dispatch_sync is called from the main thread

Provide a helper function to check whether we are being called from
the main thread and act appropriately.
gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h
gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m
gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m