]> granicus.if.org Git - rtmpdump/commitdiff
Handle UnpublishNotify for live streams
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 16 Mar 2010 00:18:11 +0000 (00:18 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 16 Mar 2010 00:18:11 +0000 (00:18 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@355 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp.c

index ed74a0afdb4547cda2fba500d1928c5a6f5861a4..4a8cfa7e7cab21864a3b3021553512f10be78ff7 100644 (file)
@@ -1600,6 +1600,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_UnpublishNotify =
+AVC("NetStream.Play.UnpublishNotify");
 
 // Returns 0 for OK/Failed/error, 1 for 'Stop or Complete'
 static int
@@ -1741,7 +1743,8 @@ HandleInvoke(RTMP *r, const char *body, unsigned int nBodySize)
 
       // Return 1 if this is a Play.Complete or Play.Stop
       else if (AVMATCH(&code, &av_NetStream_Play_Complete)
-         || AVMATCH(&code, &av_NetStream_Play_Stop))
+         || AVMATCH(&code, &av_NetStream_Play_Stop)
+         || AVMATCH(&code, &av_NetStream_Play_UnpublishNotify))
        {
          RTMP_Close(r);
          ret = 1;