ogg: element_init returns void
authorStéphane Cerveau <scerveau@collabora.com>
Tue, 16 Mar 2021 16:53:54 +0000 (17:53 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 16 Mar 2021 17:59:00 +0000 (17:59 +0000)
no need to return boolean as it will
be always TRUE.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1029>

ext/ogg/gstoggdemux.c

index 70ba16a..c8d61a8 100644 (file)
@@ -2296,11 +2296,8 @@ static gboolean gst_ogg_demux_plugin_init (GstPlugin * plugin);
 
 #define gst_ogg_demux_parent_class parent_class
 G_DEFINE_TYPE (GstOggDemux, gst_ogg_demux, GST_TYPE_ELEMENT);
-
-#define _do_init \
-    gst_ogg_demux_plugin_init (plugin);
 GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (oggdemux, "oggdemux", GST_RANK_PRIMARY,
-    GST_TYPE_OGG_DEMUX, _do_init);
+    GST_TYPE_OGG_DEMUX, gst_ogg_demux_plugin_init (plugin));
 
 static void
 gst_ogg_demux_class_init (GstOggDemuxClass * klass)