diff --git a/subprojects/gst-plugins-good/sys/oss4/oss4-sink.c b/subprojects/gst-plugins-good/sys/oss4/oss4-sink.c index 4e98992871..506bcf1770 100644 --- a/subprojects/gst-plugins-good/sys/oss4/oss4-sink.c +++ b/subprojects/gst-plugins-good/sys/oss4/oss4-sink.c @@ -104,8 +104,8 @@ enum #define gst_oss4_sink_parent_class parent_class G_DEFINE_TYPE_WITH_CODE (GstOss4Sink, gst_oss4_sink, GST_TYPE_AUDIO_SINK, G_IMPLEMENT_INTERFACE (GST_TYPE_STREAM_VOLUME, NULL)); -GST_ELEMENT_REGISTER_DEFINE (oss4sink, "oss4sink", GST_RANK_SECONDARY + 1, - GST_TYPE_OSS4_SINK); +GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (oss4sink, "oss4sink", + GST_RANK_SECONDARY + 1, GST_TYPE_OSS4_SINK, oss4_element_init (plugin)); static void gst_oss4_sink_dispose (GObject * object) diff --git a/subprojects/gst-plugins-good/sys/oss4/oss4-source.c b/subprojects/gst-plugins-good/sys/oss4/oss4-source.c index 4e071336b6..e8be7f7fac 100644 --- a/subprojects/gst-plugins-good/sys/oss4/oss4-source.c +++ b/subprojects/gst-plugins-good/sys/oss4/oss4-source.c @@ -73,8 +73,8 @@ enum #define gst_oss4_source_parent_class parent_class G_DEFINE_TYPE (GstOss4Source, gst_oss4_source, GST_TYPE_AUDIO_SRC); -GST_ELEMENT_REGISTER_DEFINE (oss4src, "oss4src", GST_RANK_SECONDARY + 1, - GST_TYPE_OSS4_SOURCE); +GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (oss4src, "oss4src", + GST_RANK_SECONDARY + 1, GST_TYPE_OSS4_SOURCE, oss4_element_init (plugin)); static void gst_oss4_source_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec);