From 7d51dc615d6ecae51e41dd8adbcf8c9a5ce74a09 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 1 Apr 2025 02:04:48 +0900 Subject: [PATCH] pluginloader-win32: Fix helper executable path under devenv lpApplicationName argument of CreateProcessW should be complete path of executable. Fixing regression introduced by https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8614 Part-of: --- subprojects/gstreamer/gst/gstpluginloader-win32.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/gst/gstpluginloader-win32.c b/subprojects/gstreamer/gst/gstpluginloader-win32.c index 1a68c60ade..092dc34eed 100644 --- a/subprojects/gstreamer/gst/gstpluginloader-win32.c +++ b/subprojects/gstreamer/gst/gstpluginloader-win32.c @@ -475,7 +475,10 @@ find_helper_bin_location (void) if (env && *env != '\0') { /* use the env-var if it is set */ GST_LOG ("Trying GST_PLUGIN_SCANNER env var: %s", env); - return g_strdup (env); + if (g_str_has_suffix (env, ".exe")) + return g_strdup (env); + else + return g_strdup_printf ("%s.exe", env); } /* use the installed version */