[rtmpdump] r358 - in trunk/librtmp: rtmp.c rtmp.h

hyc subversion at mplayerhq.hu
Tue Mar 16 05:57:11 CET 2010


Author: hyc
Date: Tue Mar 16 05:57:10 2010
New Revision: 358

Log:
More for RTMP_Write

Modified:
   trunk/librtmp/rtmp.c
   trunk/librtmp/rtmp.h

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Tue Mar 16 05:47:55 2010	(r357)
+++ trunk/librtmp/rtmp.c	Tue Mar 16 05:57:10 2010	(r358)
@@ -198,6 +198,7 @@ RTMP_Init(RTMP *r)
       r->m_vecChannelsOut[i] = NULL;
     }
   r->m_sb.sb_socket = -1;
+  r->m_write.m_body = NULL;
   RTMP_Close(r);
   r->m_nBufferMS = 300;
   r->m_fDuration = 0;
@@ -2711,6 +2712,9 @@ RTMP_Close(RTMP *r)
   r->m_read.nIgnoredFrameCounter = 0;
   r->m_read.nIgnoredFlvFrameCounter = 0;
 
+  r->m_write.m_nBytesRead = 0;
+  RTMPPacket_Free(&r->m_write);
+
   for (i = 0; i < RTMP_CHANNELS; i++)
     {
       if (r->m_vecChannelsIn[i])

Modified: trunk/librtmp/rtmp.h
==============================================================================
--- trunk/librtmp/rtmp.h	Tue Mar 16 05:47:55 2010	(r357)
+++ trunk/librtmp/rtmp.h	Tue Mar 16 05:57:10 2010	(r358)
@@ -295,6 +295,7 @@ extern "C"
   bool RTMP_SendServerBW(RTMP *r);
   void RTMP_DropRequest(RTMP *r, int i, bool freeit);
   int RTMP_Read(RTMP *r, char *buf, int size);
+  int RTMP_Write(RTMP *r, char *buf, int size);
 
 #ifdef CRYPTO
 /* hashswf.c */


More information about the rtmpdump mailing list