[MPlayer-cvslog] r18806 - in trunk/libmpdemux: rtp.c rtp.h

nicodvb subversion at mplayerhq.hu
Sat Jun 24 11:27:07 CEST 2006


Author: nicodvb
Date: Sat Jun 24 11:27:07 2006
New Revision: 18806

Modified:
   trunk/libmpdemux/rtp.c
   trunk/libmpdemux/rtp.h

Log:
static-ized a couple of functions

Modified: trunk/libmpdemux/rtp.c
==============================================================================
--- trunk/libmpdemux/rtp.c	(original)
+++ trunk/libmpdemux/rtp.c	Sat Jun 24 11:27:07 2006
@@ -187,7 +187,7 @@
 
 
 // Read next rtp packet using cache 
-int read_rtp_from_server(int fd, char *buffer, int length) {
+static int read_rtp_from_server(int fd, char *buffer, int length) {
 	// Following test is ASSERT (i.e. uneuseful if code is correct)
 	if(buffer==NULL || length<STREAM_BUFFER_SIZE) {
 		mp_msg(MSGT_NETWORK, MSGL_ERR, "RTP buffer invalid; no data return from network\n");
@@ -343,7 +343,7 @@
 }
 
 
-int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData) {
+static int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData) {
   static char buf[1600];
   unsigned int intP;
   char* charP = (char*) &intP;

Modified: trunk/libmpdemux/rtp.h
==============================================================================
--- trunk/libmpdemux/rtp.h	(original)
+++ trunk/libmpdemux/rtp.h	Sat Jun 24 11:27:07 2006
@@ -32,6 +32,6 @@
 };
 
 
-int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
+static int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
 
 #endif



More information about the MPlayer-cvslog mailing list