[rtmpdump] r282 - trunk/rtmpsrv.c

hyc subversion at mplayerhq.hu
Thu Mar 4 08:17:30 CET 2010


Author: hyc
Date: Thu Mar  4 08:17:29 2010
New Revision: 282

Log:
Fix Play/Stop responses

Modified:
   trunk/rtmpsrv.c

Modified: trunk/rtmpsrv.c
==============================================================================
--- trunk/rtmpsrv.c	Thu Mar  4 08:10:39 2010	(r281)
+++ trunk/rtmpsrv.c	Thu Mar  4 08:17:29 2010	(r282)
@@ -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;


More information about the rtmpdump mailing list