gl: remove GST_USE_UNSTABLE_API bits
authorTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 20:16:48 +0000 (20:16 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Dec 2017 12:01:37 +0000 (12:01 +0000)
ext/gl/meson.build
gst-libs/gst/gl/Makefile.am
gst-libs/gst/gl/gl.h
gst-libs/gst/gl/meson.build
tests/examples/gl/gtk/3dvideo/mviewwidget.h
tests/examples/gl/sdl/meson.build

index a3b3279..e7775cb 100644 (file)
@@ -47,7 +47,7 @@ opengl_sources = [
 
 if build_gstgl and gstgl_dep.found()
   optional_deps = []
-  opengl_defines = ['-DGST_USE_UNSTABLE_API']
+  opengl_defines = []
 
   if gl_dep.found() # have desktop GL
     opengl_sources += [
index 269fdb6..325cde9 100644 (file)
@@ -187,7 +187,6 @@ GstGL-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstgl-@GST_API_VERSION@
                --pkg gstreamer-video-@GST_API_VERSION@ \
                --pkg-export gstreamer-gl-@GST_API_VERSION@ \
                --add-init-section="$(INTROSPECTION_INIT)" \
-               -DGST_USE_UNSTABLE_API \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)
index 33d1f35..ee4144b 100644 (file)
 #ifndef __GST_GL_H__
 #define __GST_GL_H__
 
-#ifndef GST_USE_UNSTABLE_API
-#warning "The GL library from gst-plugins-bad is unstable API and may change in future."
-#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
-#endif
-
 #include <gst/gl/gstgl_fwd.h>
 #include <gst/gl/gstglapi.h>
 #include <gst/gl/gstglconfig.h>
index b8d3687..adb2236 100644 (file)
@@ -144,7 +144,7 @@ gl_winsys_deps = []
 # other things we need.
 gl_misc_deps = []
 # Other preprocessor arguments
-gl_cpp_args = ['-DGST_USE_UNSTABLE_API', '-DGST_EXPORTS']
+gl_cpp_args = ['-DGST_EXPORTS']
 
 enabled_gl_apis = []
 enabled_gl_platforms = []
@@ -687,8 +687,7 @@ if build_gstgl
       export_packages : 'gstreamer-gl-1.0',
       includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0'],
       install : true,
-      extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API',
-        '--c-include=gst/gl/gl.h'],
+      extra_args : gir_init_section + ['--c-include=gst/gl/gl.h'],
       dependencies : [gst_dep, gstbase_dep, gstvideo_dep]
     )
     gen_sources += gl_gir
index b63d7a9..81e16a6 100644 (file)
@@ -19,8 +19,6 @@
  */
 #include <string.h>
 
-#define GST_USE_UNSTABLE_API 1
-
 #include <gst/gst.h>
 #include <gtk/gtk.h>
 #include <gdk/gdk.h>
index 8285f87..49f8ea0 100644 (file)
@@ -3,14 +3,10 @@ if sdl_dep.found() and build_gstgl
   executable('sdlshare',
     'sdlshare.c',
     install: false,
-    dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep],
-    c_args : ['-DGST_USE_UNSTABLE_API', ],
-  )
+    dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep])
 
   executable('sdlshare2',
     'sdlshare2.c',
     install: false,
-    dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep],
-    c_args : ['-DGST_USE_UNSTABLE_API', ],
-)
+    dependencies : [gstbase_dep, gstgl_dep, sdl_dep, gl_dep])
 endif