mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
scenario: Try to run scenarios in development first
This commit is contained in:
parent
4dfecb6ee1
commit
5cea134655
1 changed files with 6 additions and 2 deletions
|
@ -641,6 +641,12 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
|
||||||
lfilename =
|
lfilename =
|
||||||
g_strdup_printf ("%s" GST_VALIDATE_SCENARIO_SUFFIX, scenario_name);
|
g_strdup_printf ("%s" GST_VALIDATE_SCENARIO_SUFFIX, scenario_name);
|
||||||
|
|
||||||
|
tldir = g_build_filename ("data/", lfilename, NULL);
|
||||||
|
|
||||||
|
if ((ret = _load_scenario_file (scenario, tldir)))
|
||||||
|
goto done;
|
||||||
|
g_free (tldir);
|
||||||
|
|
||||||
/* Try from local profiles */
|
/* Try from local profiles */
|
||||||
tldir =
|
tldir =
|
||||||
g_build_filename (g_get_user_data_dir (), "gstreamer-" GST_API_VERSION,
|
g_build_filename (g_get_user_data_dir (), "gstreamer-" GST_API_VERSION,
|
||||||
|
@ -658,8 +664,6 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
|
||||||
if (ret == FALSE) {
|
if (ret == FALSE) {
|
||||||
g_free (tldir);
|
g_free (tldir);
|
||||||
|
|
||||||
tldir = g_build_filename ("data/", lfilename, NULL);
|
|
||||||
ret = _load_scenario_file (scenario, tldir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Reference in a new issue