vlc | branch: master | Rémi Denis-Courmont <[email protected]> | 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;
         }
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to