# HG changeset patch # User diego # Date 1277049677 0 # Node ID 9494acd724a9c7d344370b03c476f7358e934fb2 # Parent 974cfaa54e8387b9956c100004edbbf3843da6cd Remove duplicate network_bandwidth extern declarations. diff -r 974cfaa54e83 -r 9494acd724a9 stream/asf_streaming.c --- a/stream/asf_streaming.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/asf_streaming.c Sun Jun 20 16:01:17 2010 +0000 @@ -45,8 +45,6 @@ #include "libmpdemux/asfguid.h" -extern int network_bandwidth; - static int asf_http_streaming_start(stream_t *stream, int *demuxer_type); static int asf_read_wrapper(int fd, void *buffer, int len, streaming_ctrl_t *stream_ctrl) { diff -r 974cfaa54e83 -r 9494acd724a9 stream/http.c --- a/stream/http.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/http.c Sun Jun 20 16:01:17 2010 +0000 @@ -45,7 +45,6 @@ extern const mime_struct_t mime_type_table[]; extern int stream_cache_size; -extern int network_bandwidth; typedef struct { unsigned metaint; diff -r 974cfaa54e83 -r 9494acd724a9 stream/pnm.c --- a/stream/pnm.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/pnm.c Sun Jun 20 16:01:17 2010 +0000 @@ -54,8 +54,6 @@ #include "tcp.h" //#include "libreal/rmff.h" -extern int network_bandwidth; - #define FOURCC_TAG( ch0, ch1, ch2, ch3 ) \ (((long)(unsigned char)(ch3) ) | \ ( (long)(unsigned char)(ch2) << 8 ) | \ diff -r 974cfaa54e83 -r 9494acd724a9 stream/stream_live555.c --- a/stream/stream_live555.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/stream_live555.c Sun Jun 20 16:01:17 2010 +0000 @@ -28,8 +28,6 @@ #include "libmpdemux/demuxer.h" #include "help_mp.h" -extern int network_bandwidth; - static int _rtsp_streaming_seek(int fd, off_t pos, streaming_ctrl_t* streaming_ctrl) { return -1; // For now, we don't handle RTSP stream seeking } diff -r 974cfaa54e83 -r 9494acd724a9 stream/stream_nemesi.c --- a/stream/stream_nemesi.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/stream_nemesi.c Sun Jun 20 16:01:17 2010 +0000 @@ -32,12 +32,12 @@ #include +#include "network.h" #include "stream.h" #include "libmpdemux/demuxer.h" #include "tcp.h" -extern int network_bandwidth; char *rtsp_destination = NULL; static int rtsp_streaming_seek(int fd, off_t pos, diff -r 974cfaa54e83 -r 9494acd724a9 stream/stream_rtp.c --- a/stream/stream_rtp.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/stream_rtp.c Sun Jun 20 16:01:17 2010 +0000 @@ -25,6 +25,7 @@ #include #include +#include "network.h" #include "stream.h" #include "url.h" #include "udp.h" @@ -70,7 +71,6 @@ rtp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) { URL_t *url; - extern int network_bandwidth; mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_RTP, URL: %s\n", stream->url); stream->streaming_ctrl = streaming_ctrl_new (); diff -r 974cfaa54e83 -r 9494acd724a9 stream/stream_rtsp.c --- a/stream/stream_rtsp.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/stream_rtsp.c Sun Jun 20 16:01:17 2010 +0000 @@ -46,8 +46,6 @@ #define RTSP_DEFAULT_PORT 554 -extern int network_bandwidth; - static int rtsp_streaming_read (int fd, char *buffer, int size, streaming_ctrl_t *stream_ctrl) diff -r 974cfaa54e83 -r 9494acd724a9 stream/stream_udp.c --- a/stream/stream_udp.c Sun Jun 20 15:53:45 2010 +0000 +++ b/stream/stream_udp.c Sun Jun 20 16:01:17 2010 +0000 @@ -25,6 +25,7 @@ #include #include +#include "network.h" #include "stream.h" #include "url.h" #include "udp.h" @@ -62,7 +63,6 @@ udp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) { URL_t *url; - extern int network_bandwidth; mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_UDP, URL: %s\n", stream->url); stream->streaming_ctrl = streaming_ctrl_new ();