surfaceconverter: Remove duplicated forward declaration

It seems that some compilers don't like duplicated typedefs.
This commit is contained in:
Olivier Crête 2011-11-03 17:17:10 -04:00
parent fa21ce91bf
commit 9f76573bda
2 changed files with 3 additions and 2 deletions

View file

@ -49,7 +49,6 @@ G_BEGIN_DECLS
*/
#define GST_VIDEO_CAPS_SURFACE "video/x-surface"
typedef struct _GstSurfaceBuffer GstSurfaceBuffer;
typedef struct _GstSurfaceBufferClass GstSurfaceBufferClass;
/**

View file

@ -32,12 +32,14 @@
G_BEGIN_DECLS
/* Forward declaration from gstsurfacebuffer.h */
typedef struct _GstSurfaceBuffer GstSurfaceBuffer;
#define GST_TYPE_SURFACE_CONVERTER (gst_surface_converter_get_type ())
#define GST_SURFACE_CONVERTER(obj) (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_SURFACE_CONVERTER, GstSurfaceConverter))
#define GST_IS_SURFACE_CONVERTER(obj) (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_SURFACE_CONVERTER))
#define GST_SURFACE_CONVERTER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_SURFACE_CONVERTER, GstSurfaceConverterInterface))
typedef struct _GstSurfaceBuffer GstSurfaceBuffer;
typedef struct _GstSurfaceConverter GstSurfaceConverter;
typedef struct _GstSurfaceConverterInterface GstSurfaceConverterInterface;