diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-16 10:51:35 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-22 08:35:29 +0200 |
commit | 5586da3302015e50372cd2e444bf247f988661d7 (patch) | |
tree | 5ab65cb8ad921cb7482b34a1f53ef14c8326fc36 /recipes/custom.py | |
parent | 7a0b20f74adb69693f9f2812516061d1a3a7dff3 (diff) |
gstreamer-1.0: Add Android specific 1.0 changes
Diffstat (limited to 'recipes/custom.py')
-rw-r--r-- | recipes/custom.py | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/recipes/custom.py b/recipes/custom.py index 514c8765..1d056ff4 100644 --- a/recipes/custom.py +++ b/recipes/custom.py @@ -79,7 +79,7 @@ class GStreamerStatic(recipe.Recipe): os.path.join(self.config.prefix, f)) -def list_gstreamer_plugins_by_category(config): +def list_gstreamer_plugins_by_category(config): cookbook = CookBook(config) # For plugins named differently replacements = {'decodebin2': 'uridecodebin', 'playbin': 'playback', @@ -106,3 +106,31 @@ def list_gstreamer_plugins_by_category(config): continue plugins[cat_name].append(e[25:-8]) return plugins, replacements + +def list_gstreamer_1_0_plugins_by_category(config): + cookbook = CookBook(config) + # For plugins named differently + replacements = {'decodebin': 'playback', 'playbin': 'playback', + 'uridecodebin': 'playback', 'sdpelem': 'sdp', + 'encodebin': 'encoding', 'souphttpsrc': 'soup', + 'siren': 'gstsiren', 'scaletempoplugin' : 'scaletempo', + 'rmdemux': 'realmedia', 'camerabin2': 'camerabin'} + plugins = defaultdict(list) + for r in ['gstreamer-1.0', 'gst-plugins-base-1.0', 'gst-plugins-good-1.0', + 'gst-plugins-bad-1.0', 'gst-plugins-ugly-1.0', 'gst-libav-1.0']: + r = cookbook.get_recipe(r) + for attr_name in dir(r): + if attr_name.startswith('files_plugins_'): + cat_name = attr_name[len('files_plugins_'):] + plugins_list = getattr(r, attr_name) + elif attr_name.startswith('platform_files_plugins_'): + cat_name = attr_name[len('platform_files_plugins_'):] + plugins_dict = getattr(r, attr_name) + plugins_list = plugins_dict.get(config.target_platform, []) + else: + continue + for e in plugins_list: + if not e.startswith('lib/gstreamer-'): + continue + plugins[cat_name].append(e[24:-8]) + return plugins, replacements |