summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2015-10-10 10:50:58 +0100
committerThibault Saunier <tsaunier@gnome.org>2015-10-10 10:50:58 +0100
commit5067cee05bb1ae69e2a3bebf0afc11db598d3bc9 (patch)
treeac2238b3527c468144c6097273157e4df87c6fd0
parentc30bf3b8096511a6f1c81131b6e4cd6eccebc9c7 (diff)
validate: fix loading of full path scenario
Summary: We were checking if the path was a full one but was using the scenario_name instead of this path when trying to load the scenario. Depends on D346 Reviewers: thiblahute Reviewed By: thiblahute Differential Revision: https://phabricator.freedesktop.org/D348
-rw-r--r--validate/gst/validate/gst-validate-scenario.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c
index 5ff5d1b..e620649 100644
--- a/validate/gst/validate/gst-validate-scenario.c
+++ b/validate/gst/validate/gst-validate-scenario.c
@@ -2322,7 +2322,7 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
if (g_file_test (scenarios[i], G_FILE_TEST_IS_REGULAR)) {
GST_DEBUG_OBJECT (scenario, "Scenario: %s is a full path to a scenario "
"trying to load it", scenarios[i]);
- if ((ret = _load_scenario_file (scenario, scenario_name, &is_config)))
+ if ((ret = _load_scenario_file (scenario, scenarios[i], &is_config)))
goto check_scenario;
}