[rtmpdump] r164 - trunk/hashswf.c

hyc subversion at mplayerhq.hu
Fri Jan 1 22:04:44 CET 2010


Author: hyc
Date: Fri Jan  1 22:04:43 2010
New Revision: 164

Log:
More cleanup for prev commit

Modified:
   trunk/hashswf.c

Modified: trunk/hashswf.c
==============================================================================
--- trunk/hashswf.c	Fri Jan  1 21:52:01 2010	(r163)
+++ trunk/hashswf.c	Fri Jan  1 22:04:43 2010	(r164)
@@ -154,12 +154,13 @@ http_get(const char *url, struct info *i
   send(sb.sb_socket, sb.sb_buf, i, 0);
 
   // set timeout
-  SET_RCVTIMEO(tv, 5);
+#define HTTP_TIMEOUT	5
+  SET_RCVTIMEO(tv, HTTP_TIMEOUT);
   if (setsockopt
     (sb.sb_socket, SOL_SOCKET, SO_RCVTIMEO, (char *) &tv, sizeof(tv)))
     {
       Log(LOGERROR, "%s, Setting socket timeout to %ds failed!",
-          __FUNCTION__, tv.tv_sec);
+          __FUNCTION__, HTTP_TIMEOUT);
     }
 
   sb.sb_size = 0;


More information about the rtmpdump mailing list