From fa95de073bab1264767527a2078d8313111f37b3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 15 May 2020 11:26:10 -0400 Subject: [PATCH] validate: Stop using g_file_peek_path It was introduced in 2.56 so is too recent Fixes https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/issues/51 Part-of: --- validate/gst/validate/gst-validate-utils.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/validate/gst/validate/gst-validate-utils.c b/validate/gst/validate/gst-validate-utils.c index bf9a38884b..7cce20fbac 100644 --- a/validate/gst/validate/gst-validate-utils.c +++ b/validate/gst/validate/gst-validate-utils.c @@ -731,6 +731,7 @@ _file_get_structures (GFile * file, gchar ** err, goto failed; } } else { + gchar *included_path = NULL; GFile *included = NULL; GList *tmpstructures; gchar **include_dirs = NULL; @@ -745,7 +746,7 @@ _file_get_structures (GFile * file, gchar ** err, } if (get_include_paths_func) - include_dirs = get_include_paths_func (g_file_peek_path (file)); + include_dirs = get_include_paths_func (filename); if (!include_dirs) { GFile *dir = g_file_get_parent (file); @@ -767,8 +768,9 @@ _file_get_structures (GFile * file, gchar ** err, } } - GST_INFO ("%s including %s", g_file_peek_path (file), - g_file_peek_path (included)); + included_path = g_file_get_path (included); + GST_INFO ("%s including %s", filename, included_path); + g_free (included_path); tmpstructures = _file_get_structures (included, &included_err, get_include_paths_func);