From 0a1dcc9546bd45b542966c54940f56f2959c4fde Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 25 Nov 2020 22:01:30 -0300 Subject: [PATCH] transcoder: Port to G_DECLARE Part-of: --- gst-libs/gst/transcoder/gsttranscoder.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gst-libs/gst/transcoder/gsttranscoder.h b/gst-libs/gst/transcoder/gsttranscoder.h index 9cc74a4205..c7542a57d9 100644 --- a/gst-libs/gst/transcoder/gsttranscoder.h +++ b/gst-libs/gst/transcoder/gsttranscoder.h @@ -35,18 +35,14 @@ const gchar * gst_transcoder_error_get_name (GstTranscoderError error); /*********** GstTranscoder definition ************/ #define GST_TYPE_TRANSCODER (gst_transcoder_get_type ()) -#define GST_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TRANSCODER, GstTranscoder)) -#define GST_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TRANSCODER, GstTranscoderClass)) -#define GST_IS_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TRANSCODER)) -#define GST_IS_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TRANSCODER)) -#define GST_TRANSCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TRANSCODER, GstTranscoderClass)) - -typedef struct _GstTranscoder GstTranscoder; -typedef struct _GstTranscoderClass GstTranscoderClass; -typedef struct _GstTranscoderPrivate GstTranscoderPrivate; +/** + * GstTranscoderClass.parent_class: + * + * Since: 1.20 + */ GST_TRANSCODER_API -GType gst_transcoder_get_type (void); +G_DECLARE_FINAL_TYPE (GstTranscoder, gst_transcoder, GST, TRANSCODER, GstObject) GST_TRANSCODER_API GstTranscoder * gst_transcoder_new (const gchar * source_uri,