[rtmpdump] r18 - streams.cpp

hyc subversion at mplayerhq.hu
Sat Oct 31 03:49:17 CET 2009


Author: hyc
Date: Sat Oct 31 03:49:17 2009
New Revision: 18

Log:
Updated rtmp API

Modified:
   streams.cpp

Modified: streams.cpp
==============================================================================
--- streams.cpp	Sat Oct 31 03:47:49 2009	(r17)
+++ streams.cpp	Sat Oct 31 03:49:17 2009	(r18)
@@ -625,9 +625,7 @@ void processTCPrequest
 
         Log(LOGDEBUG, "Setting buffer time to: %dms", req.bufferTime);
         rtmp->SetBufferMS(req.bufferTime);
-
-	LogPrintf("Connecting ... port: %d, app: %s\n", req.rtmpport, req.app);
-        if (!rtmp->Connect(
+        rtmp->SetupStream(
 			req.protocol, 
 			req.hostname, 
 			req.rtmpport, 
@@ -643,7 +641,10 @@ void processTCPrequest
 			req.subscribepath, 
 			dSeek, 
 			req.bLiveStream, 
-			req.timeout)) {
+			req.timeout);
+
+	LogPrintf("Connecting ... port: %d, app: %s\n", req.rtmpport, req.app);
+        if (!rtmp->Connect()) {
                 LogPrintf("%s, failed to connect!\n", __FUNCTION__);
         }
     	else 


More information about the rtmpdump mailing list