mirror of https://github.com/mpv-player/mpv
static-ized a couple of functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18806 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8f18af19d9
commit
0d0ed504d8
|
@ -187,7 +187,7 @@ static int rtp_get_next(int fd, char *buffer, int length)
|
|||
|
||||
|
||||
// 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 @@ static int rtp_streaming_start( stream_t *stream, int raw_udp ) {
|
|||
}
|
||||
|
||||
|
||||
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;
|
||||
|
|
|
@ -32,6 +32,6 @@ struct rtpheader { /* in network byte order */
|
|||
};
|
||||
|
||||
|
||||
int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
|
||||
static int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue