diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-20 10:29:44 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-20 10:29:44 +0000 |
commit | b39d60f8b1d399820cdba7dca6a6960cfb5e9226 (patch) | |
tree | 57dcaa63ed88b8064d403fcb8d8e3c45ce87ebdf /stream/librtsp | |
parent | f9455f34d0010686377dca01294a7f7be80d738c (diff) |
Use tv_sec instead of tv_usec to set 1 second timeout, e.g. NetBSD
does not like the current way (bug #858).
Patch by Sergey Svishchev [svs ropnet ru].
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25469 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/librtsp')
-rw-r--r-- | stream/librtsp/rtsp_rtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/librtsp/rtsp_rtp.c b/stream/librtsp/rtsp_rtp.c index b6cfd065a1..38228cf59e 100644 --- a/stream/librtsp/rtsp_rtp.c +++ b/stream/librtsp/rtsp_rtp.c @@ -343,8 +343,8 @@ rtp_connect (char *hostname, int port) } } - tv.tv_sec = 0; - tv.tv_usec = (1 * 1000000); /* 1 second timeout */ + tv.tv_sec = 1; /* 1 second timeout */ + tv.tv_usec = 0; FD_ZERO (&set); FD_SET (s, &set); |