summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstgldisplay.h
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2009-11-21 13:21:54 +0100
committerMatthew Waters <ystreet00@gmail.com>2014-03-15 18:36:38 +0100
commit3e1bffc802d429122387fd4bd88ad4f66a4c4eb4 (patch)
treece5940f3fd4ddd17d3068fc3c7c369f9bd8d0576 /gst-libs/gst/gl/gstgldisplay.h
parenta6a5ee2839c4d004dba37ff08b9f8161a54d89b2 (diff)
downloadgstreamer-plugins-bad-3e1bffc802d429122387fd4bd88ad4f66a4c4eb4.tar.gz
[406/906] glimagesink: add a client-data property
Also add it to glfilterapp. Fixes #559131
Diffstat (limited to 'gst-libs/gst/gl/gstgldisplay.h')
-rw-r--r--gst-libs/gst/gl/gstgldisplay.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstgldisplay.h b/gst-libs/gst/gl/gstgldisplay.h
index 01c9edfbc..670d3397f 100644
--- a/gst-libs/gst/gl/gstgldisplay.h
+++ b/gst-libs/gst/gl/gstgldisplay.h
@@ -66,8 +66,8 @@ typedef struct _GstGLDisplayTex
//Client callbacks
-typedef void (*CRCB) (GLuint, GLuint);
-typedef gboolean (*CDCB) (GLuint, GLuint, GLuint);
+typedef void (*CRCB) (GLuint, GLuint, gpointer);
+typedef gboolean (*CDCB) (GLuint, GLuint, GLuint, gpointer);
typedef void (*GstGLDisplayThreadFunc) (GstGLDisplay * display, gpointer data);
@@ -117,6 +117,7 @@ struct _GstGLDisplay
//client callbacks
CRCB clientReshapeCallback;
CDCB clientDrawCallback;
+ gpointer client_data;
//upload
GLuint upload_fbo;
@@ -283,6 +284,7 @@ void gst_gl_display_set_window_id (GstGLDisplay * display, gulong window_id);
void gst_gl_display_set_client_reshape_callback (GstGLDisplay * display,
CRCB cb);
void gst_gl_display_set_client_draw_callback (GstGLDisplay * display, CDCB cb);
+void gst_gl_display_set_client_data (GstGLDisplay * display, gpointer data);
gulong gst_gl_display_get_internal_gl_context (GstGLDisplay * display);
void gst_gl_display_activate_gl_context (GstGLDisplay * display, gboolean activate);