1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 11:25:10 +00:00

Use tv_sec instead of tv_usec to set 1 second timeout, e.g. NetBSD

does not like the current way (bug ).
Patch by Sergey Svishchev [svs ropnet ru].


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25469 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-12-20 10:29:44 +00:00
parent f9455f34d0
commit b39d60f8b1

View File

@ -343,8 +343,8 @@ rtp_connect (char *hostname, int port)
} }
} }
tv.tv_sec = 0; tv.tv_sec = 1; /* 1 second timeout */
tv.tv_usec = (1 * 1000000); /* 1 second timeout */ tv.tv_usec = 0;
FD_ZERO (&set); FD_ZERO (&set);
FD_SET (s, &set); FD_SET (s, &set);