scenario: Try to run scenarios in development first

This commit is contained in:
Thibault Saunier 2013-09-09 19:01:44 -03:00
parent 4dfecb6ee1
commit 5cea134655

View file

@ -641,6 +641,12 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
lfilename =
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 */
tldir =
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) {
g_free (tldir);
tldir = g_build_filename ("data/", lfilename, NULL);
ret = _load_scenario_file (scenario, tldir);
}
done: