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:
Stéphane Cerveau 2022-12-05 08:50:43 +00:00 committed by GStreamer Marge Bot
parent 63b598b409
commit ce50cb7413
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)]