[rtmpdump] r91 - trunk/rtmp.c

hyc subversion at mplayerhq.hu
Fri Dec 18 10:41:23 CET 2009


Author: hyc
Date: Fri Dec 18 10:41:23 2009
New Revision: 91

Log:
Always log Invokes, even if we don't exepct a _result

Modified:
   trunk/rtmp.c

Modified: trunk/rtmp.c
==============================================================================
--- trunk/rtmp.c	Thu Dec 17 20:59:16 2009	(r90)
+++ trunk/rtmp.c	Fri Dec 18 10:41:23 2009	(r91)
@@ -2098,12 +2098,13 @@ SendRTMP(RTMP * r, RTMPPacket * packet, 
 	}
     }
 
-  if (packet->m_packetType == 0x14 && queue)
+  if (packet->m_packetType == 0x14)
     {				// we invoked a remote method, keep it in call queue till result arrives
       AVal method;
       AMF_DecodeString(packet->m_body + 1, &method);
-      AV_queue(&r->m_methodCalls, &r->m_numCalls, &method);
       Log(LOGDEBUG, "Invoking %s", method.av_val);
+      if (queue)
+        AV_queue(&r->m_methodCalls, &r->m_numCalls, &method);
     }
 
   if (!r->m_vecChannelsOut[packet->m_nChannel])


More information about the rtmpdump mailing list