From 200e921895c578e03e2f34953c9df8d501835683 Mon Sep 17 00:00:00 2001 From: hyc Date: Fri, 18 Dec 2009 09:41:23 +0000 Subject: [PATCH] Always log Invokes, even if we don't exepct a _result git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@91 400ebc74-4327-4243-bc38-086b20814532 --- rtmp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rtmp.c b/rtmp.c index 3838428..61f08ef 100644 --- 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]) -- 2.40.0