mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/195>
This commit is contained in:
parent
0ffcacf325
commit
fa95de073b
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue