[vlc-devel] commit: net_Accept: -1 (infinite) delay is valid ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 7 11:56:12 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 7 12:59:14 2008 +0300| [8c95245b030785987eea08951fbfbad87143104f] | committer: Rémi Denis-Courmont
net_Accept: -1 (infinite) delay is valid
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c95245b030785987eea08951fbfbad87143104f
---
include/vlc_network.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index d32cf5c..dbe7f20 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 ) );
More information about the vlc-devel
mailing list