plugin: Stop plugin symbol name at first .
authorOlivier Crête <olivier.crete@collabora.com>
Sun, 21 May 2017 15:04:10 +0000 (17:04 +0200)
committerOlivier Crête <olivier.crete@collabora.com>
Sun, 21 May 2017 15:06:24 +0000 (17:06 +0200)
This is because the python plugin ends up named
libgstpython.cpython-35m-x86_64-linux-gnu.so so we need to stop
at the first dot.

https://bugzilla.gnome.org/show_bug.cgi?id=782924

gst/gstplugin.c

index 43b830d..3feb1aa 100644 (file)
@@ -700,7 +700,7 @@ extract_symname (const char *filename)
   else if (g_str_has_prefix (bname, "lib"))
     prefix_len += 3;
 
-  dot = g_utf8_strrchr (bname, -1, '.');
+  dot = g_utf8_strchr (bname, -1, '.');
   if (dot)
     len = dot - bname - prefix_len;
   else