[vlc-commits] src: specify range for ipv4-timeout

Rémi Denis-Courmont git at videolan.org
Tue Nov 7 20:52:51 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov  7 21:51:38 2017 +0200| [8740e367f924c7480cbf8b7a955f1889f8f1f4e5] | committer: Rémi Denis-Courmont

src: specify range for ipv4-timeout

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

 src/libvlc-module.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index e3e43296bd..8e9a29dea0 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -31,6 +31,8 @@
 # include "config.h"
 #endif
 
+#include <limits.h>
+
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_cpu.h>
@@ -1788,6 +1790,7 @@ vlc_module_begin ()
     add_obsolete_bool( "ipv4" ) /* since 2.0.0 */
     add_integer( "ipv4-timeout", 5 * 1000, TIMEOUT_TEXT,
                  TIMEOUT_LONGTEXT, true )
+        change_integer_range( 0, INT_MAX )
 
     add_string( "http-host", NULL, HTTP_HOST_TEXT, HOST_LONGTEXT, true )
     add_integer( "http-port", 8080, HTTP_PORT_TEXT, HTTP_PORT_LONGTEXT, true )



More information about the vlc-commits mailing list