[MPlayer-cvslog] r34010 - trunk/udp_sync.c

reimar subversion at mplayerhq.hu
Wed Aug 24 21:16:02 CEST 2011


Author: reimar
Date: Wed Aug 24 21:16:02 2011
New Revision: 34010

Log:
Set receive timeout correctly on Windows.

Modified:
   trunk/udp_sync.c

Modified: trunk/udp_sync.c
==============================================================================
--- trunk/udp_sync.c	Wed Aug 24 20:54:08 2011	(r34009)
+++ trunk/udp_sync.c	Wed Aug 24 21:16:02 2011	(r34010)
@@ -95,7 +95,11 @@ static int get_udp(int blocking, double 
 
     static int sockfd = -1;
     if (sockfd == -1) {
+#if HAVE_WINSOCK2_H
+        DWORD tv = 30000;
+#else
         struct timeval tv = { .tv_sec = 30 };
+#endif
         struct sockaddr_in servaddr = { 0 };
 
         startup();


More information about the MPlayer-cvslog mailing list