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
@ -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…
x
Reference in New Issue
Block a user