]> granicus.if.org Git - rtmpdump/commitdiff
Handle Play.PublishNotify like Play.Start
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Thu, 7 Apr 2011 19:07:31 +0000 (19:07 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Thu, 7 Apr 2011 19:07:31 +0000 (19:07 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@566 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp.c

index 3042c7f0327ffbbed59a27b810ed7b09d2b00fa5..286b6aeb2225a2c655ccf46df7421cf019e3b2f0 100644 (file)
@@ -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;