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

hyc subversion at mplayerhq.hu
Fri May 28 03:37:43 CEST 2010


Author: hyc
Date: Fri May 28 03:37:42 2010
New Revision: 487

Log:
Add RTMP_EnableWrite() for publishing instead of reading

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

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Thu May 27 19:34:59 2010	(r486)
+++ trunk/librtmp/rtmp.c	Fri May 28 03:37:42 2010	(r487)
@@ -259,6 +259,12 @@ RTMP_Init(RTMP *r)
   r->Link.swfAge = 30;
 }
 
+void
+RTMP_EnableWrite(RTMP *r)
+{
+  r->Link.protocol |= RTMP_FEATURE_WRITE;
+}
+
 double
 RTMP_GetDuration(RTMP *r)
 {

Modified: trunk/librtmp/rtmp.h
==============================================================================
--- trunk/librtmp/rtmp.h	Thu May 27 19:34:59 2010	(r486)
+++ trunk/librtmp/rtmp.h	Fri May 28 03:37:42 2010	(r487)
@@ -302,6 +302,7 @@ extern "C"
   void RTMP_Close(RTMP *r);
   RTMP *RTMP_Alloc(void);
   void RTMP_Free(RTMP *r);
+  void RTMP_EnableWrite(RTMP *r);
 
   int RTMP_LibVersion(void);
   void RTMP_UserInterrupt(void);	/* user typed Ctrl-C */


More information about the rtmpdump mailing list