]> granicus.if.org Git - rtmpdump/commitdiff
Always log Invokes, even if we don't exepct a _result
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 18 Dec 2009 09:41:23 +0000 (09:41 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 18 Dec 2009 09:41:23 +0000 (09:41 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@91 400ebc74-4327-4243-bc38-086b20814532

rtmp.c

diff --git a/rtmp.c b/rtmp.c
index 3838428d97eadffa8282376a32a985ba2e3ac789..61f08ef828a803f3d8e92f6d63e028f017c49fdf 100644 (file)
--- a/rtmp.c
+++ b/rtmp.c
@@ -2098,12 +2098,13 @@ SendRTMP(RTMP * r, RTMPPacket * packet, bool queue)
        }
     }
 
-  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])