]> git.sesse.net Git - vlc/commitdiff
Fix setting "value" of config hints
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 30 Jun 2011 16:08:33 +0000 (19:08 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 30 Jun 2011 16:08:49 +0000 (19:08 +0300)
src/modules/entry.c

index e47e2d99bab85c7a2b858553ee2e31fac1ff6d7d..71cef99229877ba56aa5a1a0de402bb0c4b2b5ea 100644 (file)
@@ -261,7 +261,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
 
         case VLC_CONFIG_VALUE:
         {
-            if (IsConfigIntegerType (item->i_type))
+            if (IsConfigIntegerType (item->i_type)
+             || !CONFIG_ITEM(item->i_type))
             {
                 item->orig.i =
                 item->value.i = va_arg (ap, int64_t);
@@ -285,8 +286,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
         case VLC_CONFIG_RANGE:
         {
             if (IsConfigIntegerType (item->i_type)
-             || item->i_type == CONFIG_ITEM_MODULE_LIST_CAT
-             || item->i_type == CONFIG_ITEM_MODULE_CAT)
+             || !CONFIG_ITEM(item->i_type))
             {
                 item->min.i = va_arg (ap, int64_t);
                 item->max.i = va_arg (ap, int64_t);