[vlc-commits] Allow min and max values for string config items

Rémi Denis-Courmont git at videolan.org
Wed Aug 24 17:58:29 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 24 18:58:10 2011 +0300| [ffb94588171d5983acdf991c7c9a73846541b69c] | committer: Rémi Denis-Courmont

Allow min and max values for string config items

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

 src/modules/entry.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/modules/entry.c b/src/modules/entry.c
index 6acfb31..ec31c09 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -319,18 +319,16 @@ static int vlc_plugin_setter (void *plugin, void *tgt, int propid, ...)
 
         case VLC_CONFIG_RANGE:
         {
-            if (IsConfigIntegerType (item->i_type)
-             || !CONFIG_ITEM(item->i_type))
-            {
-                item->min.i = va_arg (ap, int64_t);
-                item->max.i = va_arg (ap, int64_t);
-            }
-            else
             if (IsConfigFloatType (item->i_type))
             {
                 item->min.f = va_arg (ap, double);
                 item->max.f = va_arg (ap, double);
             }
+            else
+            {
+                item->min.i = va_arg (ap, int64_t);
+                item->max.i = va_arg (ap, int64_t);
+            }
             break;
         }
 



More information about the vlc-commits mailing list