summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2020-03-15 19:22:00 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2020-03-16 12:35:42 +0100
commit5406208f0d0f010a5b8557ebb745f2279095e232 (patch)
tree607fc53dd39df661943ab421e8d909be3414cce4 /ext
parent58d74f0ec507bab4186cda70590202569050ba12 (diff)
downloadgstreamer-plugins-good-5406208f0d0f010a5b8557ebb745f2279095e232.tar.gz
twolame: Use G_DECLARE_FINAL_TYPE
Diffstat (limited to 'ext')
-rw-r--r--ext/twolame/gsttwolamemp2enc.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/ext/twolame/gsttwolamemp2enc.h b/ext/twolame/gsttwolamemp2enc.h
index 72a6beaec..2a02ca6bd 100644
--- a/ext/twolame/gsttwolamemp2enc.h
+++ b/ext/twolame/gsttwolamemp2enc.h
@@ -30,19 +30,8 @@ G_BEGIN_DECLS
#include <twolame.h>
-#define GST_TYPE_TWO_LAME \
- (gst_two_lame_get_type())
-#define GST_TWO_LAME(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TWO_LAME,GstTwoLame))
-#define GST_TWO_LAME_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TWO_LAME,GstTwoLameClass))
-#define GST_IS_TWO_LAME(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TWO_LAME))
-#define GST_IS_TWO_LAME_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TWO_LAME))
-
-typedef struct _GstTwoLame GstTwoLame;
-typedef struct _GstTwoLameClass GstTwoLameClass;
+#define GST_TYPE_TWO_LAME (gst_two_lame_get_type())
+G_DECLARE_FINAL_TYPE (GstTwoLame, gst_two_lame, GST, TWO_LAME, GstAudioEncoder)
/**
* GstTwoLame:
@@ -76,12 +65,6 @@ struct _GstTwoLame {
twolame_options *glopts;
};
-struct _GstTwoLameClass {
- GstAudioEncoderClass parent_class;
-};
-
-GType gst_two_lame_get_type(void);
-
G_END_DECLS