From fe1a5579f01299eb584fd705a6a3557a9b7c46f4 Mon Sep 17 00:00:00 2001 From: hyc Date: Tue, 16 Mar 2010 00:18:11 +0000 Subject: [PATCH] Handle UnpublishNotify for live streams git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@355 400ebc74-4327-4243-bc38-086b20814532 --- librtmp/rtmp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c index ed74a0a..4a8cfa7 100644 --- a/librtmp/rtmp.c +++ b/librtmp/rtmp.c @@ -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; -- 2.50.1