From b39d60f8b1d399820cdba7dca6a6960cfb5e9226 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 20 Dec 2007 10:29:44 +0000 Subject: 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 --- stream/librtsp/rtsp_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream') 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); -- cgit v1.2.3