glmixer: fix some compiler warnings
authorJulien Isorce <j.isorce@samsung.com>
Tue, 17 Feb 2015 23:50:51 +0000 (23:50 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Sun, 22 Feb 2015 10:34:05 +0000 (10:34 +0000)
i686-apple-darwin11-llvm-gcc-4.2

gstglmixer.h:43: error: redefinition of typedef ‘GstGLMixer’
gstglmixerpad.h:32: error: previous declaration of ‘GstGLMixer’ was here
gstglmixer.h:46: error: redefinition of typedef ‘GstGLMixerFrameData’
gstglmixerpad.h:33: error: previous declaration of ‘GstGLMixerFrameData’ was here

ext/gl/gstglmixerpad.h

index a57eb4d..a180c76 100644 (file)
@@ -29,8 +29,8 @@
 
 G_BEGIN_DECLS
 
-typedef struct _GstGLMixer GstGLMixer;
-typedef struct _GstGLMixerFrameData GstGLMixerFrameData;
+struct _GstGLMixer;
+struct _GstGLMixerFrameData;
 
 #define GST_TYPE_GL_MIXER_PAD (gst_gl_mixer_pad_get_type())
 #define GST_GL_MIXER_PAD(obj) \
@@ -62,7 +62,7 @@ struct _GstGLMixerPadClass
 {
   GstVideoAggregatorPadClass parent_class;
 
-  GstBuffer * (*upload_buffer) (GstGLMixer * mix, GstGLMixerFrameData * frame, GstBuffer * buffer);
+  GstBuffer * (*upload_buffer) (struct _GstGLMixer * mix, struct _GstGLMixerFrameData * frame, GstBuffer * buffer);
 };
 
 GType gst_gl_mixer_pad_get_type (void);