[vlc-commits] Fix setting "value" of config hints

Rémi Denis-Courmont git at videolan.org
Thu Jun 30 18:09:51 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 30 19:08:33 2011 +0300| [64f818673d5a19903d8308cdb23ae7307cf3a804] | committer: Rémi Denis-Courmont

Fix setting "value" of config hints

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64f818673d5a19903d8308cdb23ae7307cf3a804
---

 src/modules/entry.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/entry.c b/src/modules/entry.c
index e47e2d9..71cef99 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -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);



More information about the vlc-commits mailing list