summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2013-04-04 15:16:39 -0300
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-05 20:50:10 +0200
commit75dd31ef4605d02a7c407b4bb815f47167fd6c41 (patch)
tree3213b8536922a8e9cf49f4d91deb2bb459b03021 /recipes
parentfee691d243855e44a780b6238880818b3b31068f (diff)
recipes: gstreamer-ios-templates: do not uppercase plugin names
Use lowercase names for the plugins registering functions, as their names are. Also adds missing headers to the gst_ios_plugins.c file, so that the defines/function are correctly found and used
Diffstat (limited to 'recipes')
-rw-r--r--recipes/gstreamer-ios-templates.recipe9
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes/gstreamer-ios-templates.recipe b/recipes/gstreamer-ios-templates.recipe
index 97b458d..b8eafc3 100644
--- a/recipes/gstreamer-ios-templates.recipe
+++ b/recipes/gstreamer-ios-templates.recipe
@@ -13,6 +13,9 @@ DEFINES_TPL = '''\
#endif'''
GST_IOS_PLUGINS_C_TPL = '''
+#include <gst/gst.h>
+#include "gst_ios_plugins.h"
+
%s
void
@@ -51,9 +54,9 @@ class Recipe(recipe.Recipe):
for p in ps:
if p in replacements:
p = replacements[p]
- p = p.upper()
- decls.append(DEFINES_TPL % (p, c, DECLARE_PLUGIN_TPL % p))
- regs.append(DEFINES_TPL % (p, c, REGISTER_PLUGIN_TPL % p))
+ p_up = p.upper()
+ decls.append(DEFINES_TPL % (p_up, c, DECLARE_PLUGIN_TPL % p))
+ regs.append(DEFINES_TPL % (p_up, c, REGISTER_PLUGIN_TPL % p))
plugins_h.write(REGISTER_TPL)
plugins_h.close()
plugins_c = open(os.path.join(share_dir, 'GStreamer Base.xctemplate',