From: hyc Date: Tue, 16 Mar 2010 06:08:33 +0000 (+0000) Subject: And more for RTMP_Write X-Git-Tag: v2.4~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66cc854df76739f6a0552988390bfc84bec65cee;p=rtmpdump And more for RTMP_Write git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@360 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c index 8675fb5..b7a267e 100644 --- a/librtmp/rtmp.c +++ b/librtmp/rtmp.c @@ -1782,7 +1782,8 @@ HandleInvoke(RTMP *r, const char *body, unsigned int nBodySize) 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) {