From c9c2902604ac9a358be2ca2b390b6f1f7e83f93c Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Fri, 2 Jun 2017 00:52:37 +0200 Subject: [PATCH] gstplugin: remove gst prefix when loading plugin on MSVC When building with Meson and MSVC, our plugins don't have a 'libgst' suffix and are just 'gstfoo.dll', so look for that too. https://bugzilla.gnome.org/show_bug.cgi?id=783333 --- gst/gstplugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 3feb1aa..12f8743 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -699,6 +699,8 @@ extract_symname (const char *filename) prefix_len += 6; else if (g_str_has_prefix (bname, "lib")) prefix_len += 3; + else if (g_str_has_prefix(bname, "gst")) + prefix_len += 3; dot = g_utf8_strchr (bname, -1, '.'); if (dot) -- 2.7.4