gst-plugin: allow '-' in plugin file name

'-' will be translated to underscore when determining symbol name

https://bugzilla.gnome.org/show_bug.cgi?id=782756
This commit is contained in:
Matej Knopp 2017-05-17 21:50:25 +02:00 committed by Nicolas Dufresne
parent 9bf46a1065
commit d59e26d37d

View file

@ -687,8 +687,13 @@ extract_symname (const char *filename)
gchar *bname, *name, *symname;
const gchar *dot;
gsize prefix_len = 0, len;
int i;
bname = g_path_get_basename (filename);
for (i = 0; bname[i]; ++i) {
if (bname[i] == '-')
bname[i] = '_';
}
if (g_str_has_prefix (bname, "libgst"))
prefix_len += 6;