playback: element_init returns void
authorStéphane Cerveau <scerveau@collabora.com>
Tue, 16 Mar 2021 11:59:14 +0000 (12:59 +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>

gst/playback/gstplaybackelement.c
gst/playback/gstplaybackelements.h
gst/playback/gstplaybin3.c

index 7ac053b..8505fdf 100644 (file)
 #include "gstplaybackelements.h"
 
 
-gboolean
+void
 playback_element_init (GstPlugin * plugin)
 {
   static gsize res = FALSE;
+
   if (g_once_init_enter (&res)) {
     gst_pb_utils_init ();
 
@@ -51,5 +52,4 @@ playback_element_init (GstPlugin * plugin)
 #endif /* ENABLE_NLS */
     g_once_init_leave (&res, TRUE);
   }
-  return res;
 }
index e08608d..51ddc0c 100644 (file)
@@ -39,6 +39,6 @@ GST_ELEMENT_REGISTER_DECLARE (parsebin);
 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__ */
index 753e12d..60dd2af 100644 (file)
@@ -5154,7 +5154,7 @@ gst_play_bin3_custom_element_init (GstPlugin * plugin)
 
   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,