gl: suppress some g-i warnings
authorTim-Philipp Müller <tim@centricular.com>
Sat, 23 Mar 2019 23:46:28 +0000 (23:46 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 24 Mar 2019 16:05:09 +0000 (16:05 +0000)
gst_gl_memory_setup_buffer() was marked as introspectable=0
anyway, so might just as well mark it as '(skip)' and suppress
the warning. Reason is the (element-type gpointer) on wrapped_data.

gstglmemory.c:1426: Warning: GstGL: gst_gl_memory_setup_buffer: argument wrapped_data: Missing (element-type) annotation
gstglmemory.c:1426: Warning: GstGL: gst_gl_memory_setup_buffer: argument wrapped_data: Missing (element-type) annotation

egl/gstegl.h:40: Warning: GstGL: symbol='EGL_EGLEXT_PROTOTYPES': Unknown namespace for symbol 'EGL_EGLEXT_PROTOTYPES'

gst-libs/gst/gl/egl/gstegl.h
gst-libs/gst/gl/gstglmemory.c

index 694912e..a305f6a 100644 (file)
 #endif
 #endif
 
+#ifndef __GI_SCANNER__
 #ifndef EGL_EGLEXT_PROTOTYPES
 #define EGL_EGLEXT_PROTOTYPES 1
 #endif
+#endif
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 
index 1f9579f..bc9fc2e 100644 (file)
@@ -1424,7 +1424,7 @@ gst_gl_video_allocation_params_copy_data (GstGLVideoAllocationParams * src_vid,
 }
 
 /**
- * gst_gl_memory_setup_buffer:
+ * gst_gl_memory_setup_buffer: (skip)
  * @allocator: the @GstGLMemoryAllocator to allocate from
  * @buffer: a #GstBuffer to setup
  * @params: the #GstGLVideoAllocationParams to allocate with