gst-uninstalled: Don't add validate plugins to GST_PLUGIN_PATH

Validate plugins are automatically scanned from GST_VALIDATE_PLUGIN_PATH
instead. Adding them to GST_PLUGIN_PATH causes race conditions as the
plugins may be loaded before validate itself.
This commit is contained in:
Alicia Boya García 2018-11-23 15:42:03 +01:00
parent b174f7a9a1
commit 96a1384af9

View file

@ -81,9 +81,12 @@ def get_subprocess_env(options, gst_version):
targets = json.loads(targets_s.decode())
paths = set()
mono_paths = set()
srcdir_path = pathlib.Path(options.srcdir)
for target in targets:
filename = target['filename']
root = os.path.dirname(filename)
if srcdir_path / "subprojects/gst-devtools/validate/plugins" in (srcdir_path / root).parents:
continue
if filename.endswith('.dll'):
mono_paths.add(os.path.join(options.builddir, root))
if typelib_reg.search(filename):