projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf46a1
)
gst-plugin: allow '-' in plugin file name
author
Matej Knopp
<matej.knopp@gmail.com>
Wed, 17 May 2017 19:50:25 +0000
(21:50 +0200)
committer
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Thu, 18 May 2017 00:55:18 +0000
(20:55 -0400)
'-' will be translated to underscore when determining symbol name
https://bugzilla.gnome.org/show_bug.cgi?id=782756
gst/gstplugin.c
patch
|
blob
|
history
diff --git
a/gst/gstplugin.c
b/gst/gstplugin.c
index
ac27c16
..
43b830d
100644
(file)
--- 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;