[rtmpdump] r355 - trunk/librtmp/rtmp.c

hyc subversion at mplayerhq.hu
Tue Mar 16 01:18:12 CET 2010


Author: hyc
Date: Tue Mar 16 01:18:11 2010
New Revision: 355

Log:
Handle UnpublishNotify for live streams

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Mon Mar 15 18:07:55 2010	(r354)
+++ trunk/librtmp/rtmp.c	Tue Mar 16 01:18:11 2010	(r355)
@@ -1600,6 +1600,8 @@ static const AVal av_NetStream_Play_Comp
 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, 
 
       // 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;


More information about the rtmpdump mailing list