gstalsaplugin: return the result of the element registration
authorJordan Petridis <jordan@centricular.com>
Thu, 30 Jun 2022 13:14:27 +0000 (16:14 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 3 Aug 2022 20:35:59 +0000 (20:35 +0000)
Previously there were branches that would return FALSE, however
it looks like we forgot to return the new result variable.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/900

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2695>

subprojects/gst-plugins-base/ext/alsa/gstalsaplugin.c

index 87803c6..e7894d2 100644 (file)
@@ -39,7 +39,7 @@ plugin_init (GstPlugin * plugin)
   ret |= GST_ELEMENT_REGISTER (alsasink, plugin);
   ret |= GST_ELEMENT_REGISTER (alsamidisrc, plugin);
 
-  return TRUE;
+  return ret;
 }
 
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,