gst-uninstalled: define GST_OMX_CONFIG_DIR
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Fri, 4 Jan 2019 11:58:37 +0000 (12:58 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Fri, 4 Jan 2019 11:58:37 +0000 (12:58 +0100)
GST_OMX_CONFIG_DIR is used by gst-omx to load the gstomx.conf associated
with the selected OMX target.

gst-uninstalled.py

index 0c230a0..99bf487 100755 (executable)
@@ -149,6 +149,9 @@ def get_subprocess_env(options, gst_version):
                 if os.path.exists(uninstalled):
                     pkg_dirs.add(os.path.dirname(path))
 
+            if path.endswith('gstomx.conf'):
+                prepend_env_var(env, 'GST_OMX_CONFIG_DIR', os.path.dirname(path))
+
         for p in presets:
             prepend_env_var(env, 'GST_PRESET_PATH', p)