summaryrefslogtreecommitdiff
path: root/gst/audioresample
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2020-03-12 07:42:52 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-03-16 15:47:58 +0000
commita1ef6a11791fb104dcb71d4d6b51c04073b32d22 (patch)
tree4fdfaa4767c7cf30db918cb3c26112753cdfc46c /gst/audioresample
parentf91659ba9251bf2308e697f9849f4d325976e17e (diff)
downloadgstreamer-plugins-base-a1ef6a11791fb104dcb71d4d6b51c04073b32d22.tar.gz
audioresample: Use G_DECLARE_FINAL_TYPE
Diffstat (limited to 'gst/audioresample')
-rw-r--r--gst/audioresample/gstaudioresample.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/gst/audioresample/gstaudioresample.h b/gst/audioresample/gstaudioresample.h
index 6092493ea..205512a4e 100644
--- a/gst/audioresample/gstaudioresample.h
+++ b/gst/audioresample/gstaudioresample.h
@@ -28,19 +28,9 @@
G_BEGIN_DECLS
-#define GST_TYPE_AUDIO_RESAMPLE \
- (gst_audio_resample_get_type())
-#define GST_AUDIO_RESAMPLE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_RESAMPLE,GstAudioResample))
-#define GST_AUDIO_RESAMPLE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_RESAMPLE,GstAudioResampleClass))
-#define GST_IS_AUDIO_RESAMPLE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_RESAMPLE))
-#define GST_IS_AUDIO_RESAMPLE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_RESAMPLE))
-
-typedef struct _GstAudioResample GstAudioResample;
-typedef struct _GstAudioResampleClass GstAudioResampleClass;
+#define GST_TYPE_AUDIO_RESAMPLE (gst_audio_resample_get_type())
+G_DECLARE_FINAL_TYPE (GstAudioResample, gst_audio_resample, GST, AUDIO_RESAMPLE,
+ GstBaseTransform)
/**
* GstAudioResample:
@@ -75,12 +65,6 @@ struct _GstAudioResample {
GstAudioConverter *converter;
};
-struct _GstAudioResampleClass {
- GstBaseTransformClass parent_class;
-};
-
-GType gst_audio_resample_get_type(void);
-
G_END_DECLS
#endif /* __AUDIO_RESAMPLE_H__ */