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:
Vincent Penquerc'h 2013-08-27 05:15:19 -04:00 committed by Thiago Santos
parent 69597d9f5e
commit aa814d0189

View file

@ -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);