From b37e08cb29ddca72161a8098690ba52e5594153d Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 6 Jan 2008 03:01:39 +0000 Subject: sys/glsink/: Handle xoverlay exposes correctly. This means glimagesink works correctly most of the time in totem (fu... Original commit message from CVS: * sys/glsink/glimagesink.c: * sys/glsink/glimagesink.h: * sys/glsink/gstglbuffer.h: * sys/glsink/gstgldisplay.c: * sys/glsink/gstgldisplay.h: * sys/glsink/gstglupload.c: Handle xoverlay exposes correctly. This means glimagesink works correctly most of the time in totem (fullscreening being an execption). Doesn't handle expose events directly to the GL window. --- sys/glsink/gstglbuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/glsink/gstglbuffer.h') diff --git a/sys/glsink/gstglbuffer.h b/sys/glsink/gstglbuffer.h index cf2e0141..0cf27def 100644 --- a/sys/glsink/gstglbuffer.h +++ b/sys/glsink/gstglbuffer.h @@ -41,6 +41,9 @@ struct _GstGLBuffer { GType gst_gl_buffer_get_type (void); +#define gst_gl_buffer_ref(x) ((GstGLBuffer *)(gst_buffer_ref((GstBuffer *)(x)))) +#define gst_gl_buffer_unref(x) (gst_buffer_unref((GstBuffer *)(x))) + GstGLBuffer * gst_gl_buffer_new (GstGLDisplay *display, int width, int height); GstGLBuffer * gst_gl_buffer_new_with_format (GstGLDisplay *display, -- cgit v1.2.1