[vlc-devel] [PATCH] Support static modules using extern NULL-terminated list
Rafaël Carré
rafael.carre at gmail.com
Tue Aug 23 00:54:25 CEST 2011
---
src/modules/bank.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/modules/bank.c b/src/modules/bank.c
index b001d1b..07c2b7f 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -91,6 +91,14 @@ void module_InitBank (void)
module_t *module = module_InitStatic (vlc_entry__main);
if (likely(module != NULL))
module_StoreBank (module);
+#ifndef HAVE_DYNAMIC_PLUGINS
+ extern vlc_plugin_cb *vlc_static_modules;
+ for (unsigned i = 0; vlc_static_modules[i]; i++) {
+ module = module_InitStatic (vlc_static_modules[i]);
+ if (likely(module != NULL))
+ module_StoreBank (module);
+ }
+#endif
config_SortConfig ();
}
--
1.7.5.4
More information about the vlc-devel
mailing list