diff --git a/gst/audiorate/gstaudiorate.h b/gst/audiorate/gstaudiorate.h index c7dfd2342f..84e401b503 100644 --- a/gst/audiorate/gstaudiorate.h +++ b/gst/audiorate/gstaudiorate.h @@ -25,19 +25,8 @@ G_BEGIN_DECLS -#define GST_TYPE_AUDIO_RATE \ - (gst_audio_rate_get_type()) -#define GST_AUDIO_RATE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_RATE,GstAudioRate)) -#define GST_AUDIO_RATE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_RATE,GstAudioRate)) -#define GST_IS_AUDIO_RATE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_RATE)) -#define GST_IS_AUDIO_RATE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_RATE)) - -typedef struct _GstAudioRate GstAudioRate; -typedef struct _GstAudioRateClass GstAudioRateClass; +#define GST_TYPE_AUDIO_RATE (gst_audio_rate_get_type()) +G_DECLARE_FINAL_TYPE (GstAudioRate, gst_audio_rate, GST, AUDIO_RATE, GstElement) /** * GstAudioRate: @@ -72,13 +61,6 @@ struct _GstAudioRate GstSegment src_segment; }; -struct _GstAudioRateClass -{ - GstElementClass parent_class; -}; - -GType gst_audio_rate_get_type (void); - G_END_DECLS #endif /* __GST_AUDIO_RATE_H__ */