[rtmpdump] r137 - trunk/rtmp.c
hyc
subversion at mplayerhq.hu
Wed Dec 30 00:37:53 CET 2009
Author: hyc
Date: Wed Dec 30 00:37:52 2009
New Revision: 137
Log:
Write headers for 0-length packets
Modified:
trunk/rtmp.c
Modified: trunk/rtmp.c
==============================================================================
--- trunk/rtmp.c Wed Dec 30 00:16:09 2009 (r136)
+++ trunk/rtmp.c Wed Dec 30 00:37:52 2009 (r137)
@@ -2232,7 +2232,7 @@ RTMP_SendPacket(RTMP * r, RTMPPacket * p
int nChunkSize = r->m_outChunkSize;
Log(LOGDEBUG2, "%s: fd=%d, size=%d", __FUNCTION__, r->m_socket, nSize);
- while (nSize)
+ while (nSize+hSize)
{
int wrote;
@@ -2245,6 +2245,7 @@ RTMP_SendPacket(RTMP * r, RTMPPacket * p
LogHexString(LOGDEBUG2, buffer, nChunkSize);
wrote = WriteN(r, header, nChunkSize + hSize);
header = NULL;
+ hSize = 0;
}
else
{
More information about the rtmpdump
mailing list