In fact the cache loader does only load less than MODULE_SHORTCUT_MAX shortcuts.
{
unsigned i_shortcuts = va_arg (ap, unsigned);
unsigned index = module->i_shortcuts;
+ /* The cache loader accept only a small number of shortcuts */
+ assert(i_shortcuts + index <= MODULE_SHORTCUT_MAX);
+
const char *const *tab = va_arg (ap, const char *const *);
const char **pp = realloc (module->pp_shortcuts,
sizeof (pp[0]) * (index + i_shortcuts));
#ifndef LIBVLC_MODULES_H
# define LIBVLC_MODULES_H 1
-
-/* Number of tries before we unload an unused module */
-#define MODULE_HIDE_DELAY 50
-
/*****************************************************************************
* module_bank_t: the module bank
*****************************************************************************