gstreamer-full: fix empty -Dgst-full-plugins=
authorStéphane Cerveau <scerveau@collabora.com>
Tue, 18 May 2021 12:30:33 +0000 (14:30 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Tue, 18 May 2021 12:41:41 +0000 (14:41 +0200)
When this option was given empty, when for example we don't
want any plugin in gstreamer full, the
build process was failing because an empty
plugin was created in gstinitstaticplugins.c.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/244>

scripts/generate_init_static_plugins.py

index 5d7af8b..230929f 100644 (file)
@@ -79,7 +79,7 @@ if __name__ == "__main__":
     plugins_declaration = []
     plugins_registration = []
 
-    if options.plugins is None:
+    if options.plugins is None or options.plugins.isspace():
         plugins = []
     else:
         plugins = options.plugins.split(';')