no need to return boolean as it will
be always TRUE.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1029>
#include "gstplaybackelements.h"
-gboolean
+void
playback_element_init (GstPlugin * plugin)
{
static gsize res = FALSE;
+
if (g_once_init_enter (&res)) {
gst_pb_utils_init ();
#endif /* ENABLE_NLS */
g_once_init_leave (&res, TRUE);
}
- return res;
}
gboolean gst_play_bin_custom_element_init (GstPlugin * plugin);
gboolean gst_play_bin3_custom_element_init (GstPlugin * plugin);
-G_GNUC_INTERNAL gboolean playback_element_init (GstPlugin * plugin);
+G_GNUC_INTERNAL void playback_element_init (GstPlugin * plugin);
#endif /* __GST_PLAY_BACK_ELEMENTS_H__ */
GST_DEBUG_CATEGORY_INIT (gst_play_bin3_debug, "playbin3", 0, "play bin3");
- ret &= playback_element_init (plugin);
+ playback_element_init (plugin);
if (g_getenv ("USE_PLAYBIN3"))
ret &= gst_element_register (plugin, "playbin", GST_RANK_NONE,