View Single Post
  #3  
Old 03-06-2014, 07:40 AM
gorilla.maguila gorilla.maguila is offline
Member
 
Join Date: Dec 2012
Posts: 62
gorilla.maguila is on a distinguished road
Default

Re: Problem with GetSockError


Solved with a small workaround in rtmpdump.c:


Code:
+ #define RTMP_CONNECT_RETRIES 5

- if (!RTMP_Connect(&rtmp, NULL))
- {
-      nStatus = RD_NO_CONNECT;
-      break;
- }

+ int i = 0;
+ result = 0;

+ for(i = 0; i < RTMP_CONNECT_RETRIES; i++){
+	if((result = RTMP_Connect(&rtmp, NULL)) == 1)
+		  break;
+ }
	  
+ if(!result)
+    break;
Reply With Quote