summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-04-25 09:52:38 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-25 10:03:51 +0200
commit803d405e752057884d4b2cc3dc3c661c1d934af0 (patch)
tree283d8f9ca3cac7894fb07b2a503876d0fa5a6bce
parent09f76df6ec799f2b019db129a9aa71e0f878ffeb (diff)
Properly extract plugin names from the library filename in the case of gnonlin
-rw-r--r--recipes/custom.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/custom.py b/recipes/custom.py
index 088af956..6b04f07b 100644
--- a/recipes/custom.py
+++ b/recipes/custom.py
@@ -133,5 +133,13 @@ def list_gstreamer_1_0_plugins_by_category(config):
for e in plugins_list:
if not e.startswith('lib/gstreamer-'):
continue
- plugins[cat_name].append(e[24:-8])
+ c = e.split('/')
+ if len(c) != 3:
+ continue
+ e = c[2]
+ if e.startswith('libgst'):
+ e = e[6:-8]
+ else:
+ e = e[3:-8]
+ plugins[cat_name].append(e)
return plugins, replacements