gstreamer-full-static: Be more strict with plugin param

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>
This commit is contained in:
Stéphane Cerveau 2022-02-04 14:46:24 +01:00 committed by GStreamer Marge Bot
parent 8a161880fc
commit a997108b18

View 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: