[rtmpdump] r177 - in trunk: rtmp.c rtmp.h
hyc
subversion at mplayerhq.hu
Mon Jan 4 05:03:40 CET 2010
Author: hyc
Date: Mon Jan 4 05:03:38 2010
New Revision: 177
Log:
Add flag for sending objectEncoding even if it's zero
Modified:
trunk/rtmp.c
trunk/rtmp.h
Modified: trunk/rtmp.c
==============================================================================
--- trunk/rtmp.c Sun Jan 3 05:15:19 2010 (r176)
+++ trunk/rtmp.c Mon Jan 4 05:03:38 2010 (r177)
@@ -931,7 +931,7 @@ SendConnectPacket(RTMP * r)
if (!enc)
return false;
}
- if (r->m_fEncoding != 0.0)
+ if (r->m_fEncoding != 0.0 || r->m_bSendEncoding)
{
enc = AMF_EncodeNamedNumber(enc, pend, &av_objectEncoding, r->m_fEncoding); // AMF0, AMF3 not supported yet
if (!enc)
Modified: trunk/rtmp.h
==============================================================================
--- trunk/rtmp.h Sun Jan 3 05:15:19 2010 (r176)
+++ trunk/rtmp.h Mon Jan 4 05:03:38 2010 (r177)
@@ -165,6 +165,7 @@ typedef struct RTMP
int m_nClientBW;
uint8_t m_nClientBW2;
bool m_bPlaying;
+ bool m_bSendEncoding;
AVal *m_methodCalls; /* remote method calls queue */
int m_numCalls;
More information about the rtmpdump
mailing list