g_win32_get_package_installation_directory_of_module() may return NULL
in some circumstances and we need to deal with that.
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/996
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1644>
{
char *base_dir;
+ GST_DEBUG ("attempting to retrieve libgstreamer-1.0 location using "
+ "Win32-specific method");
+
base_dir =
g_win32_get_package_installation_directory_of_module
(_priv_gst_dll_handle);
+ if (!base_dir)
+ return NULL;
dir = g_build_filename (base_dir, GST_PLUGIN_SUBDIR, NULL);
GST_DEBUG ("using DLL dir %s", dir);