cairo: Use G_DECLARE_FINAL_TYPE

This commit is contained in:
Niels De Graef 2020-03-12 19:24:57 +01:00
parent 9ad65fa60b
commit 5bd3fcf726

View file

@ -28,19 +28,9 @@
G_BEGIN_DECLS
#define GST_TYPE_CAIRO_OVERLAY \
(gst_cairo_overlay_get_type())
#define GST_CAIRO_OVERLAY(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAIRO_OVERLAY,GstCairoOverlay))
#define GST_CAIRO_OVERLAY_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAIRO_OVERLAY,GstCairoOverlayClass))
#define GST_IS_CAIRO_OVERLAY(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAIRO_OVERLAY))
#define GST_IS_CAIRO_OVERLAY_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAIRO_OVERLAY))
typedef struct _GstCairoOverlay GstCairoOverlay;
typedef struct _GstCairoOverlayClass GstCairoOverlayClass;
#define GST_TYPE_CAIRO_OVERLAY (gst_cairo_overlay_get_type())
G_DECLARE_FINAL_TYPE (GstCairoOverlay, gst_cairo_overlay,
GST, CAIRO_OVERLAY, GstBaseTransform)
struct _GstCairoOverlay {
GstBaseTransform parent;
@ -53,12 +43,6 @@ struct _GstCairoOverlay {
gboolean attach_compo_to_buffer;
};
struct _GstCairoOverlayClass {
GstBaseTransformClass parent_class;
};
GType gst_cairo_overlay_get_type (void);
G_END_DECLS
#endif /* __GST_CAIRO_OVERLAY_H__ */