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

hyc subversion at mplayerhq.hu
Thu Apr 7 21:07:32 CEST 2011


Author: hyc
Date: Thu Apr  7 21:07:31 2011
New Revision: 566

Log:
Handle Play.PublishNotify like Play.Start

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Sun Mar 27 16:20:58 2011	(r565)
+++ trunk/librtmp/rtmp.c	Thu Apr  7 21:07:31 2011	(r566)
@@ -2282,6 +2282,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_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, 
 	  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;


More information about the rtmpdump mailing list