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);