gst-gl: Remove duplicate declarations
authorMaciej Wolny <maciej.wolny@codethink.co.uk>
Mon, 19 Nov 2018 15:09:25 +0000 (15:09 +0000)
committerMatthew Waters <matthew@centricular.com>
Wed, 28 Nov 2018 11:59:25 +0000 (11:59 +0000)
This causes 'redefinition of typedef ...' errors on GCC 4.5.3

gst-libs/gst/gl/gbm/gstglwindow_gbm_egl.h
gst-libs/gst/gl/gstgldebug.h
gst-libs/gst/gl/gstglfuncs.h

index 3d132a2..e89af2f 100644 (file)
@@ -24,6 +24,7 @@
 #include <gbm.h>
 #include <gst/gl/gl.h>
 #include <gst/gl/egl/gstegl.h>
+#include <gst/gl/gbm/gstgldisplay_gbm.h>
 
 G_BEGIN_DECLS
 
@@ -37,8 +38,6 @@ G_BEGIN_DECLS
 typedef struct _GstGLWindowGBMEGL        GstGLWindowGBMEGL;
 typedef struct _GstGLWindowGBMEGLClass   GstGLWindowGBMEGLClass;
 
-typedef struct _GstGLDisplayGBM GstGLDisplayGBM;
-
 struct _GstGLWindowGBMEGL {
   /*< private >*/
   GstGLWindow parent;
index fc73d1b..8b54827 100644 (file)
@@ -25,8 +25,6 @@
 
 G_BEGIN_DECLS
 
-typedef struct _GstGLAsyncDebug GstGLAsyncDebug;
-
 typedef gchar * (*GstGLAsyncDebugLogGetMessage) (gpointer user_data);
 
 /**
index 805abcf..e3bf874 100644 (file)
@@ -93,11 +93,11 @@ G_BEGIN_DECLS
   ret (GSTGLAPI *name) args;
 #define GST_GL_EXT_END()
 
-typedef struct _GstGLFuncs
+struct _GstGLFuncs
 {
 #include <gst/gl/glprototypes/all_functions.h>
   gpointer padding[GST_PADDING_LARGE*6];
-} GstGLFuncs;
+};
 
 #undef GST_GL_EXT_BEGIN
 #undef GST_GL_EXT_FUNCTION