Mercurial > mplayer.hg
changeset 25441:3744685df066
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].
author | reimar |
---|---|
date | Thu, 20 Dec 2007 10:29:44 +0000 |
parents | ae7399c268fe |
children | 0d0f20dd32bf |
files | stream/librtsp/rtsp_rtp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/librtsp/rtsp_rtp.c Thu Dec 20 10:10:26 2007 +0000 +++ b/stream/librtsp/rtsp_rtp.c Thu Dec 20 10:29:44 2007 +0000 @@ -343,8 +343,8 @@ } } - 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);