From aa814d01892c722d7c67e78533e9f13adc311368 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 27 Aug 2013 05:15:19 -0400 Subject: [PATCH] gst-validate-scenario: fix scenario listing missing installed ones Only scenarii in the current directory or the user's home directory were being listed. --- validate/gst/validate/gst-validate-scenario.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 305740c825..840a88695a 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -817,6 +817,13 @@ gst_validate_list_scenarios (void) g_object_unref (dir); 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 */ dir = g_file_new_for_path ("data/"); _list_scenarios_in_dir (dir);