mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
gst-validate-scenario: fix scenario listing missing installed ones
Only scenarii in the current directory or the user's home directory were being listed.
This commit is contained in:
parent
69597d9f5e
commit
aa814d0189
1 changed files with 7 additions and 0 deletions
|
@ -817,6 +817,13 @@ gst_validate_list_scenarios (void)
|
||||||
g_object_unref (dir);
|
g_object_unref (dir);
|
||||||
g_free (tldir);
|
g_free (tldir);
|
||||||
|
|
||||||
|
tldir = g_build_filename (GST_DATADIR, "gstreamer-" GST_API_VERSION,
|
||||||
|
GST_VALIDATE_SCENARIO_DIRECTORY, NULL);
|
||||||
|
dir = g_file_new_for_path (tldir);
|
||||||
|
_list_scenarios_in_dir (dir);
|
||||||
|
g_object_unref (dir);
|
||||||
|
g_free (tldir);
|
||||||
|
|
||||||
/* Hack to make it work uninstalled */
|
/* Hack to make it work uninstalled */
|
||||||
dir = g_file_new_for_path ("data/");
|
dir = g_file_new_for_path ("data/");
|
||||||
_list_scenarios_in_dir (dir);
|
_list_scenarios_in_dir (dir);
|
||||||
|
|
Loading…
Reference in a new issue