summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@igalia.com>2022-12-05 08:50:43 +0000
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-12-05 13:15:50 +0000
commitce50cb7413579f15f2dfef986c68f0bcfee9570e (patch)
tree4aa5f593e97efdf29a3ea6fd250e704140dede0b /scripts
parent63b598b40955b49e30ce0be5fc48f641884410e9 (diff)
downloadgstreamer-ce50cb7413579f15f2dfef986c68f0bcfee9570e.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_init_static_plugins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_init_static_plugins.py b/scripts/generate_init_static_plugins.py
index 6b86ea4d43..af8b275541 100755
--- a/scripts/generate_init_static_plugins.py
+++ b/scripts/generate_init_static_plugins.py
@@ -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)]