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

hyc subversion at mplayerhq.hu
Tue Jun 1 00:53:35 CEST 2010


Author: hyc
Date: Tue Jun  1 00:53:34 2010
New Revision: 499

Log:
RTMP_Write buf is const

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

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Sun May 30 23:14:28 2010	(r498)
+++ trunk/librtmp/rtmp.c	Tue Jun  1 00:53:34 2010	(r499)
@@ -4210,7 +4210,7 @@ fail:
 static const AVal av_setDataFrame = AVC("@setDataFrame");
 
 int
-RTMP_Write(RTMP *r, char *buf, int size)
+RTMP_Write(RTMP *r, const char *buf, int size)
 {
   RTMPPacket *pkt = &r->m_write;
   char *pend, *enc;

Modified: trunk/librtmp/rtmp.h
==============================================================================
--- trunk/librtmp/rtmp.h	Sun May 30 23:14:28 2010	(r498)
+++ trunk/librtmp/rtmp.h	Tue Jun  1 00:53:34 2010	(r499)
@@ -323,7 +323,7 @@ extern "C"
   bool RTMP_SendClientBW(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);
+  int RTMP_Write(RTMP *r, const char *buf, int size);
 
 /* hashswf.c */
   int RTMP_HashSWF(const char *url, unsigned int *size, unsigned char *hash,


More information about the rtmpdump mailing list