[MPlayer-cvslog] r25469 - trunk/stream/librtsp/rtsp_rtp.c
reimar
subversion at mplayerhq.hu
Thu Dec 20 11:29:44 CET 2007
Author: reimar
Date: Thu Dec 20 11:29:44 2007
New Revision: 25469
Log:
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].
Modified:
trunk/stream/librtsp/rtsp_rtp.c
Modified: trunk/stream/librtsp/rtsp_rtp.c
==============================================================================
--- trunk/stream/librtsp/rtsp_rtp.c (original)
+++ trunk/stream/librtsp/rtsp_rtp.c Thu Dec 20 11:29:44 2007
@@ -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);
More information about the MPlayer-cvslog
mailing list