]> granicus.if.org Git - rtmpdump/commitdiff
Allow longer URLs for subscribepath
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 18 Dec 2009 18:11:46 +0000 (18:11 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 18 Dec 2009 18:11:46 +0000 (18:11 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@92 400ebc74-4327-4243-bc38-086b20814532

rtmp.c

diff --git a/rtmp.c b/rtmp.c
index 61f08ef828a803f3d8e92f6d63e028f017c49fdf..b3430b2ee3bebd8fb7b80c42df7389a50c1b37ff 100644 (file)
--- a/rtmp.c
+++ b/rtmp.c
@@ -993,7 +993,7 @@ static bool
 SendFCSubscribe(RTMP * r, AVal * subscribepath)
 {
   RTMPPacket packet;
-  char pbuf[256];
+  char pbuf[512];
   packet.m_nChannel = 0x03;    // control channel (invoke)
   packet.m_headerType = RTMP_PACKET_SIZE_MEDIUM;
   packet.m_packetType = 0x14;  // INVOKE
@@ -2098,11 +2098,13 @@ SendRTMP(RTMP * r, RTMPPacket * packet, bool queue)
        }
     }
 
+  /* we invoked a remote method */
   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);
       Log(LOGDEBUG, "Invoking %s", method.av_val);
+      /* keep it in call queue till result arrives */
       if (queue)
         AV_queue(&r->m_methodCalls, &r->m_numCalls, &method);
     }