From a8bb25393565b2e12d513c512725b8e7cc2cdc36 Mon Sep 17 00:00:00 2001 From: hyc Date: Thu, 4 Mar 2010 07:17:29 +0000 Subject: [PATCH] Fix Play/Stop responses git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@282 400ebc74-4327-4243-bc38-086b20814532 --- rtmpsrv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtmpsrv.c b/rtmpsrv.c index ab24a74..6307e59 100644 --- a/rtmpsrv.c +++ b/rtmpsrv.c @@ -281,6 +281,8 @@ SendPlayStart(RTMP *r) enc = AMF_EncodeNamedString(enc, pend, &av_description, &av_Started_playing); enc = AMF_EncodeNamedString(enc, pend, &av_details, &r->Link.playpath); enc = AMF_EncodeNamedString(enc, pend, &av_clientid, &av_clientid); + *enc++ = 0; + *enc++ = 0; *enc++ = AMF_OBJECT_END; packet.m_nBodySize = enc - packet.m_body; @@ -311,6 +313,8 @@ SendPlayStop(RTMP *r) enc = AMF_EncodeNamedString(enc, pend, &av_description, &av_Stopped_playing); enc = AMF_EncodeNamedString(enc, pend, &av_details, &r->Link.playpath); enc = AMF_EncodeNamedString(enc, pend, &av_clientid, &av_clientid); + *enc++ = 0; + *enc++ = 0; *enc++ = AMF_OBJECT_END; packet.m_nBodySize = enc - packet.m_body; -- 2.40.0