Skip to content

Commit

Permalink
ogg: remove useless ret test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stéphane Cerveau committed Mar 10, 2021
1 parent 1682161 commit 20da00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ogg/gstoggdemux.c
Expand Up @@ -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);

Expand Down

0 comments on commit 20da00f

Please sign in to comment.