summaryrefslogtreecommitdiffstats
path: root/stream/stream_udp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-24 16:05:52 +0100
committerwm4 <wm4@nowhere>2013-01-24 17:45:13 +0100
commitdd96c11d5e0166ce6c597d178ee4827193cff16d (patch)
treed6ff3e8af74aebefe3866e8654683e8356ac5214 /stream/stream_udp.c
parent570271c7767e924be3d9d347b04508579dfa4d80 (diff)
downloadmpv-dd96c11d5e0166ce6c597d178ee4827193cff16d.tar.bz2
mpv-dd96c11d5e0166ce6c597d178ee4827193cff16d.tar.xz
stream: implement some HTTP specific options for stream_lavf
The "http:" protocol has been switched to use ffmpeg's HTTP implementation some time ago. One problem with this was that many HTTP specific options stopped working, because they were obviously implemented for the internal HTTP implementation only. Add the missing things. Note that many options will work for ffmpeg only, as Libav's HTTP implementation is missing these. They will silently be ignored on Libav. Some options we can't fix: --ipv4-only-proxy, --prefer-ipv4, --prefer-ipv6 As far as I can see, not even libavformat internals distinguish between ipv4 and ipv6. --user, --passwd ffmpeg probably supports specifying these in the URL directly.
Diffstat (limited to 'stream/stream_udp.c')
-rw-r--r--stream/stream_udp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/stream/stream_udp.c b/stream/stream_udp.c
index fc7da19aa0..d447a9238c 100644
--- a/stream/stream_udp.c
+++ b/stream/stream_udp.c
@@ -60,8 +60,6 @@ udp_streaming_start (stream_t *stream)
static int
udp_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
{
- extern int network_bandwidth;
-
mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_UDP, URL: %s\n", stream->url);
stream->streaming_ctrl = streaming_ctrl_new ();
if (!stream->streaming_ctrl)