diff --git a/ext/qt/gstqtsink.h b/ext/qt/gstqtsink.h index 3ee20b7d5d..5bd85f34a1 100644 --- a/ext/qt/gstqtsink.h +++ b/ext/qt/gstqtsink.h @@ -27,19 +27,13 @@ #include #include "qtitem.h" -typedef struct _GstQtSink GstQtSink; -typedef struct _GstQtSinkClass GstQtSinkClass; typedef struct _GstQtSinkPrivate GstQtSinkPrivate; G_BEGIN_DECLS -GType gst_qt_sink_get_type (void); -#define GST_TYPE_QT_SINK (gst_qt_sink_get_type()) -#define GST_QT_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_QT_SINK,GstQtSink)) -#define GST_QT_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_QT_SINK,GstQtSinkClass)) -#define GST_IS_QT_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_QT_SINK)) -#define GST_IS_QT_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_QT_SINK)) -#define GST_QT_SINK_CAST(obj) ((GstQtSink*)(obj)) +#define GST_TYPE_QT_SINK (gst_qt_sink_get_type()) +G_DECLARE_FINAL_TYPE (GstQtSink, gst_qt_sink, GST, QT_SINK, GstVideoSink) +#define GST_QT_SINK_CAST(obj) ((GstQtSink*)(obj)) /** * GstQtSink: @@ -61,17 +55,6 @@ struct _GstQtSink QSharedPointer widget; }; -/** - * GstQtSinkClass: - * - * The #GstQtSinkClass struct only contains private data - */ -struct _GstQtSinkClass -{ - /* */ - GstVideoSinkClass object_class; -}; - GstQtSink * gst_qt_sink_new (void); G_END_DECLS diff --git a/ext/qt/gstqtsrc.h b/ext/qt/gstqtsrc.h index d84544224a..d563d995c5 100644 --- a/ext/qt/gstqtsrc.h +++ b/ext/qt/gstqtsrc.h @@ -27,18 +27,11 @@ #include #include "qtwindow.h" -typedef struct _GstQtSrc GstQtSrc; -typedef struct _GstQtSrcClass GstQtSrcClass; - G_BEGIN_DECLS -GType gst_qt_src_get_type (void); -#define GST_TYPE_QT_SRC (gst_qt_src_get_type()) -#define GST_QT_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_QT_SRC,GstQtSrc)) -#define GST_QT_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_QT_SRC,GstQtSrcClass)) -#define GST_IS_QT_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_QT_SRC)) -#define GST_IS_QT_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_QT_SRC)) -#define GST_QT_SRC_CAST(obj) ((GstQtSrc*)(obj)) +#define GST_TYPE_QT_SRC (gst_qt_src_get_type()) +G_DECLARE_FINAL_TYPE (GstQtSrc, gst_qt_src, GST, QT_SRC, GstPushSrc) +#define GST_QT_SRC_CAST(obj) ((GstQtSrc*)(obj)) /** * GstQtSrc: @@ -64,17 +57,6 @@ struct _GstQtSrc gboolean pending_image_orientation; }; -/** - * GstQtSrcClass: - * - * The #GstQtSrcClass struct only contains private data - */ -struct _GstQtSrcClass -{ - /* */ - GstPushSrcClass object_class; -}; - G_END_DECLS #endif /* __GST_QT_SRC_H__ */