diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-03-08 10:44:53 +0100 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2021-03-10 20:06:20 +0100 |
commit | 20da00f05763296bcd955d7ecdadd51aea4e5a2f (patch) | |
tree | 9af178d9b05a3dd20bb98b283959cf532ac8dde3 /ext | |
parent | 1682161355d2ab57bfb291ab2eae6059a3d8b234 (diff) | |
download | gstreamer-plugins-base-20da00f05763296bcd955d7ecdadd51aea4e5a2f.tar.gz |
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1060>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ogg/gstoggdemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 81734e9a2..70ba16a86 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); |