mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
tester: Stop using g_file_new_build_filename
It was introduced in GLib 2.56 only Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/560 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/495>
This commit is contained in:
parent
34916e133d
commit
827c181447
1 changed files with 4 additions and 1 deletions
|
@ -154,6 +154,7 @@ main (int argc, gchar ** argv)
|
||||||
gchar **args = g_new0 (gchar *, argc + 2);
|
gchar **args = g_new0 (gchar *, argc + 2);
|
||||||
gint i;
|
gint i;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
gchar *filename;
|
||||||
gboolean is_tty = isatty (STDOUT_FILENO);
|
gboolean is_tty = isatty (STDOUT_FILENO);
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
|
@ -164,8 +165,10 @@ main (int argc, gchar ** argv)
|
||||||
app.testname = argv[1];
|
app.testname = argv[1];
|
||||||
|
|
||||||
dirname = g_path_get_dirname (argv[0]);
|
dirname = g_path_get_dirname (argv[0]);
|
||||||
f = g_file_new_build_filename ("subprojects", "gst-devtools",
|
filename = g_build_filename ("subprojects", "gst-devtools",
|
||||||
"validate", "tools", VALIDATE_NAME, NULL);
|
"validate", "tools", VALIDATE_NAME, NULL);
|
||||||
|
f = g_file_new_for_path (filename);
|
||||||
|
g_free (filename);
|
||||||
|
|
||||||
if (g_file_query_exists (f, NULL)) {
|
if (g_file_query_exists (f, NULL)) {
|
||||||
/* Try to find `gst-validate` as a meson subproject */
|
/* Try to find `gst-validate` as a meson subproject */
|
||||||
|
|
Loading…
Reference in a new issue