diff options
author | Matej Knopp <matej.knopp@gmail.com> | 2017-05-17 21:50:25 +0200 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-05-17 20:55:18 -0400 |
commit | d59e26d37dd6be535460d6831f3d4ad6666808b5 (patch) | |
tree | 08d0bdb4091e305a4677ab123baa31019888a438 | |
parent | 9bf46a1065ee8430e072942f34d2504033fab633 (diff) |
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
-rw-r--r-- | gst/gstplugin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/gstplugin.c b/gst/gstplugin.c index ac27c16c7..43b830d49 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -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; |