From 20da00f05763296bcd955d7ecdadd51aea4e5a2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 8 Mar 2021 10:44:53 +0100 Subject: [PATCH] ogg: remove useless ret test Use GST_ELEMENT_REGISTER_DEFINE_CUSTOM instead of GST_ELEMENT_REGISTER_DEFINE_WITH_CODE if a specific init needs to be tested before registering the element. Part-of: --- ext/ogg/gstoggdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 81734e9..70ba16a 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2298,7 +2298,7 @@ static gboolean gst_ogg_demux_plugin_init (GstPlugin * plugin); G_DEFINE_TYPE (GstOggDemux, gst_ogg_demux, GST_TYPE_ELEMENT); #define _do_init \ - ret |= gst_ogg_demux_plugin_init (plugin); + gst_ogg_demux_plugin_init (plugin); GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (oggdemux, "oggdemux", GST_RANK_PRIMARY, GST_TYPE_OGG_DEMUX, _do_init); -- 2.7.4