[rtmpdump] r360 - trunk/librtmp/rtmp.c
hyc
subversion at mplayerhq.hu
Tue Mar 16 07:08:34 CET 2010
Author: hyc
Date: Tue Mar 16 07:08:33 2010
New Revision: 360
Log:
And more for RTMP_Write
Modified:
trunk/librtmp/rtmp.c
Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c Tue Mar 16 06:37:14 2010 (r359)
+++ trunk/librtmp/rtmp.c Tue Mar 16 07:08:33 2010 (r360)
@@ -1782,7 +1782,8 @@ HandleInvoke(RTMP *r, const char *body,
RTMP_SendCtrl(r, 3, r->m_stream_id, r->m_nBufferMS);
}
}
- else if (AVMATCH(&methodInvoked, &av_play))
+ else if (AVMATCH(&methodInvoked, &av_play) ||
+ AVMATCH(&methodInvoked, &av_publish))
{
r->m_bPlaying = true;
}
@@ -3538,7 +3539,7 @@ RTMP_Write(RTMP *r, char *buf, int size)
int s2 = size, ret, num;
pkt->m_nChannel = 0x04; // source channel
- pkt->m_nInfoField2 = 0;
+ pkt->m_nInfoField2 = r->m_stream_id;
while (s2)
{
More information about the rtmpdump
mailing list