From 90dda6cb023c46e2ba9f6b768ddb2c2c64c8b1df Mon Sep 17 00:00:00 2001 From: hyc Date: Fri, 18 Dec 2009 18:11:46 +0000 Subject: [PATCH] Allow longer URLs for subscribepath git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@92 400ebc74-4327-4243-bc38-086b20814532 --- rtmp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtmp.c b/rtmp.c index 61f08ef..b3430b2 100644 --- 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); } -- 2.40.0