mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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:
parent
8a161880fc
commit
a997108b18
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue