mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gstreamer-full: use the basename of plugin_path to avoid the ':' detection
The absolute path on windows contains ':' which prevents gstinitstaticplugins.py to work properly. Use the basename whic is good enough for the script to make the list of plugins Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3526>
This commit is contained in:
parent
63b598b409
commit
ce50cb7413
2 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ foreach plugin: all_plugins
|
|||
plugin_path = plugin.get_variable('full_path')
|
||||
all_plugins_paths += plugin_path
|
||||
all_plugins_dirs += fs.parent(plugin_path)
|
||||
plugins_names += plugin_path
|
||||
plugins_names += fs.name(plugin_path)
|
||||
endforeach
|
||||
|
||||
# Work around meson bug: https://github.com/mesonbuild/meson/pull/6770
|
||||
|
|
|
@ -116,7 +116,7 @@ if __name__ == "__main__":
|
|||
plugin_name = split[0]
|
||||
if plugin_name == '':
|
||||
continue
|
||||
filename = os.path.basename(plugin)
|
||||
filename = os.path.basename(plugin).strip()
|
||||
if filename.startswith('libgst') and filename.endswith('.a'):
|
||||
plugin_name = filename[len('libgst'):-len('.a')]
|
||||
plugins_registration += ['GST_PLUGIN_STATIC_REGISTER(%s);' % (plugin_name)]
|
||||
|
|
Loading…
Reference in a new issue