mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
scenario: Add GST_VALIDATE_SCENARIOS_PATH environment variable
So you can specify the PATHS where to look for scenario files
This commit is contained in:
parent
720010f073
commit
42857faaae
1 changed files with 8 additions and 0 deletions
|
@ -652,6 +652,7 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
|
|||
{
|
||||
gboolean ret = TRUE;
|
||||
gchar *lfilename = NULL, *tldir = NULL;
|
||||
const gchar *env_scenariodir = g_getenv ("GST_VALIDATE_SCENARIOS_PATH");
|
||||
|
||||
if (!scenario_name)
|
||||
goto invalid_name;
|
||||
|
@ -665,6 +666,13 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
|
|||
goto done;
|
||||
g_free (tldir);
|
||||
|
||||
if (env_scenariodir) {
|
||||
tldir = g_build_filename (env_scenariodir, lfilename, NULL);
|
||||
if ((ret = _load_scenario_file (scenario, tldir)))
|
||||
goto done;
|
||||
g_free (tldir);
|
||||
}
|
||||
|
||||
/* Try from local profiles */
|
||||
tldir =
|
||||
g_build_filename (g_get_user_data_dir (), "gstreamer-" GST_API_VERSION,
|
||||
|
|
Loading…
Reference in a new issue