diff options
Diffstat (limited to 'gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h')
-rw-r--r-- | gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h b/gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h index ae7abc8a6..2459e2a28 100644 --- a/gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h +++ b/gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h @@ -40,6 +40,7 @@ struct _GstGLContextCocoaPrivate GstGLAPI context_api; gint source_id; + GRecMutex current_lock; }; @@ -59,8 +60,13 @@ struct _GstGLContextCocoaPrivate gboolean gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa); + void _invoke_on_main (GstGLWindowCB func, gpointer data); +typedef void (*GstGLContextCocoaInvokeFunc) (gpointer data); +void _gst_gl_context_cocoa_invoke (GstGLContext * context, + GstGLContextCocoaInvokeFunc func, gpointer data, GDestroyNotify notify); + G_END_DECLS #endif /* __GST_GL_COCOA_PRIVATE_H__ */ |