diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 72d8421a56..66783c5240 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -52,8 +52,6 @@ GST_DEBUG_CATEGORY (videoconvert_debug); #define GST_CAT_DEFAULT videoconvert_debug GST_DEBUG_CATEGORY_STATIC (CAT_PERFORMANCE); -GType gst_video_convert_get_type (void); - static GQuark _colorspace_quark; #define gst_video_convert_parent_class parent_class diff --git a/gst/videoconvert/gstvideoconvert.h b/gst/videoconvert/gstvideoconvert.h index a8a5863877..875c9ce23a 100644 --- a/gst/videoconvert/gstvideoconvert.h +++ b/gst/videoconvert/gstvideoconvert.h @@ -28,15 +28,10 @@ G_BEGIN_DECLS -#define GST_TYPE_VIDEO_CONVERT (gst_video_convert_get_type()) -#define GST_VIDEO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_CONVERT,GstVideoConvert)) -#define GST_VIDEO_CONVERT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_CONVERT,GstVideoConvertClass)) -#define GST_IS_VIDEO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_CONVERT)) -#define GST_IS_VIDEO_CONVERT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_CONVERT)) -#define GST_VIDEO_CONVERT_CAST(obj) ((GstVideoConvert *)(obj)) - -typedef struct _GstVideoConvert GstVideoConvert; -typedef struct _GstVideoConvertClass GstVideoConvertClass; +#define GST_TYPE_VIDEO_CONVERT (gst_video_convert_get_type()) +#define GST_VIDEO_CONVERT_CAST(obj) ((GstVideoConvert *)(obj)) +G_DECLARE_FINAL_TYPE (GstVideoConvert, gst_video_convert, GST, VIDEO_CONVERT, + GstVideoFilter) /** * GstVideoConvert: @@ -59,11 +54,6 @@ struct _GstVideoConvert { gint n_threads; }; -struct _GstVideoConvertClass -{ - GstVideoFilterClass parent_class; -}; - G_END_DECLS #endif /* __GST_VIDEOCONVERT_H__ */