gstreamer-full-static: Be more strict with plugin param
authorStéphane Cerveau <scerveau@collabora.com>
Fri, 4 Feb 2022 13:46:24 +0000 (14:46 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 25 May 2022 12:13:47 +0000 (12:13 +0000)
Check that the plugins are correctly separated by ";"
and do not accept "," or ":" inside.

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

scripts/generate_init_static_plugins.py

index 230929fc91bc89dd80ef24e7ee9838081ad642c3..92d3d6d4d592dbfacbdd8c38727f8c0f8a2798ea 100644 (file)
@@ -79,6 +79,10 @@ if __name__ == "__main__":
     plugins_declaration = []
     plugins_registration = []
 
+    if ',' in options.plugins or ':' in options.plugins:
+        print("Only ';' is allowed in the list of plugins.")
+        exit(1)
+
     if options.plugins is None or options.plugins.isspace():
         plugins = []
     else: