]> git.sesse.net Git - vlc/commitdiff
Fixed module_need in case a shortcut list was provided.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 1 May 2009 12:14:17 +0000 (14:14 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 1 May 2009 12:14:17 +0000 (14:14 +0200)
 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).

src/modules/modules.c

index 8b097870e07925a486a18729c2811e079387550c..e21323488aa00b4fecd3c7105843510e1b601497 100644 (file)
@@ -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 */