Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thibault Saunier
gst-devtools
Commits
0ded10bb
Commit
0ded10bb
authored
Sep 19, 2013
by
Thibault Saunier
Committed by
Olivier Crête
Oct 04, 2013
Browse files
scenario: Add GST_VALIDATE_SCENARIOS_PATH environment variable
So you can specify the PATHS where to look for scenario files
parent
ca32c09a
Changes
1
Hide whitespace changes
Inline
Side-by-side
validate/gst/validate/gst-validate-scenario.c
View file @
0ded10bb
...
@@ -624,6 +624,7 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
...
@@ -624,6 +624,7 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
{
{
gboolean
ret
=
TRUE
;
gboolean
ret
=
TRUE
;
gchar
*
lfilename
=
NULL
,
*
tldir
=
NULL
;
gchar
*
lfilename
=
NULL
,
*
tldir
=
NULL
;
const
gchar
*
env_scenariodir
=
g_getenv
(
"GST_VALIDATE_SCENARIOS_PATH"
);
if
(
!
scenario_name
)
if
(
!
scenario_name
)
goto
invalid_name
;
goto
invalid_name
;
...
@@ -637,6 +638,13 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
...
@@ -637,6 +638,13 @@ gst_validate_scenario_load (GstValidateScenario * scenario,
goto
done
;
goto
done
;
g_free
(
tldir
);
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 */
/* 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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment