[rtmpdump] r169 - trunk/rtmp.h

hyc subversion at mplayerhq.hu
Sat Jan 2 04:55:56 CET 2010


Author: hyc
Date: Sat Jan  2 04:55:55 2010
New Revision: 169

Log:
Fix WIN32 timeout handling

Modified:
   trunk/rtmp.h

Modified: trunk/rtmp.h
==============================================================================
--- trunk/rtmp.h	Sat Jan  2 02:31:18 2010	(r168)
+++ trunk/rtmp.h	Sat Jan  2 04:55:55 2010	(r169)
@@ -27,7 +27,7 @@
 #include <winsock.h>
 #define GetSockError()	WSAGetLastError()
 #define setsockopt(a,b,c,d,e)	(setsockopt)(a,b,c,(const char *)d,(int)e)
-#define EWOULDBLOCK	EAGAIN
+#define EWOULDBLOCK	WSAETIMEDOUT	/* we don't use nonblocking, but we do use timeouts */
 #define sleep(n)	Sleep(n*1000)
 #define msleep(n)	Sleep(n)
 #define socklen_t	int


More information about the rtmpdump mailing list