Commit 5226ae13 authored by Laurent Aimar's avatar Laurent Aimar

Fixed module_need in case a shortcut list was provided.

 Always reject plugins that have a 0 priority but did not match the
shortcut list (being empty or not).
This makes 0 priority plugin only selectable using a shortcut (which I
think it is what we want).
parent 222b5fac
......@@ -534,11 +534,10 @@ module_t * __module_need( vlc_object_t *p_this, const char *psz_capability,
if( b_strict )
continue;
}
/* If we didn't require a shortcut, trash <= 0 scored plugins */
else if( p_module->i_score <= 0 )
{
/* Trash <= 0 scored plugins (they can only be selected by shortcut) */
if( p_module->i_score <= 0 )
continue;
}
found_shortcut:
/* Store this new module */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment