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

hyc subversion at mplayerhq.hu
Fri Dec 24 23:35:36 CET 2010


Author: hyc
Date: Fri Dec 24 23:35:35 2010
New Revision: 554

Log:
Fix infinite loop on Error/Close

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Wed Dec 15 13:12:33 2010	(r553)
+++ trunk/librtmp/rtmp.c	Fri Dec 24 23:35:35 2010	(r554)
@@ -3395,10 +3395,10 @@ RTMP_Close(RTMP *r)
     {
       if (r->m_stream_id > 0)
         {
-          if ((r->Link.protocol & RTMP_FEATURE_WRITE))
-	    SendFCUnpublish(r);
 	  i = r->m_stream_id;
 	  r->m_stream_id = 0;
+          if ((r->Link.protocol & RTMP_FEATURE_WRITE))
+	    SendFCUnpublish(r);
 	  SendDeleteStream(r, i);
 	}
       if (r->m_clientID.av_val)


More information about the rtmpdump mailing list