mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
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:
parent
9bf46a1065
commit
d59e26d37d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue