From 8c95245b030785987eea08951fbfbad87143104f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 7 Sep 2008 12:59:14 +0300 Subject: [PATCH] net_Accept: -1 (infinite) delay is valid --- include/vlc_network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vlc_network.h b/include/vlc_network.h index d32cf5c222..dbe7f205a7 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -109,7 +109,7 @@ VLC_EXPORT( int, net_AcceptSingle, (vlc_object_t *obj, int lfd) ); VLC_EXPORT( int, __net_Accept, ( vlc_object_t *, int *, mtime_t ) ); #define net_Accept(a, b, c) \ - __net_Accept(VLC_OBJECT(a), b, c ? check_delay(c) : 0) + __net_Accept(VLC_OBJECT(a), b, (c == -1) ? -1 : (c ? check_delay(c) : 0)) #define net_ConnectDgram(a, b, c, d, e ) __net_ConnectDgram(VLC_OBJECT(a), b, c, d, e) VLC_EXPORT( int, __net_ConnectDgram, ( vlc_object_t *p_this, const char *psz_host, int i_port, int hlim, int proto ) ); -- 2.20.1