From: hyc Date: Thu, 7 Apr 2011 19:07:31 +0000 (+0000) Subject: Handle Play.PublishNotify like Play.Start X-Git-Tag: v2.4~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=495e1e64106f10a7a1c15f0e2f870a02aa90605c;p=rtmpdump Handle Play.PublishNotify like Play.Start git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@566 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c index 3042c7f..286b6ae 100644 --- a/librtmp/rtmp.c +++ b/librtmp/rtmp.c @@ -2282,6 +2282,8 @@ static const AVal av_NetStream_Play_Complete = AVC("NetStream.Play.Complete"); static const AVal av_NetStream_Play_Stop = AVC("NetStream.Play.Stop"); static const AVal av_NetStream_Seek_Notify = AVC("NetStream.Seek.Notify"); static const AVal av_NetStream_Pause_Notify = AVC("NetStream.Pause.Notify"); +static const AVal av_NetStream_Play_PublishNotify = +AVC("NetStream.Play.PublishNotify"); static const AVal av_NetStream_Play_UnpublishNotify = AVC("NetStream.Play.UnpublishNotify"); static const AVal av_NetStream_Publish_Start = AVC("NetStream.Publish.Start"); @@ -2449,7 +2451,8 @@ HandleInvoke(RTMP *r, const char *body, unsigned int nBodySize) RTMP_Log(RTMP_LOGERROR, "Closing connection: %s", code.av_val); } - else if (AVMATCH(&code, &av_NetStream_Play_Start)) + else if (AVMATCH(&code, &av_NetStream_Play_Start) + || AVMATCH(&code, &av_NetStream_Play_PublishNotify)) { int i; r->m_bPlaying = TRUE;