Mercurial > mplayer.hg
comparison stream/stream_udp.c @ 35300:ebcf337f1786
Remove proxy "support" from stream_rtp and stream_upd, trying
to use a http proxy for UDP connections makes no sense.
author | reimar |
---|---|
date | Sat, 10 Nov 2012 13:18:38 +0000 |
parents | a93891202051 |
children |
comparison
equal
deleted
inserted
replaced
35299:7b3815b8238d | 35300:ebcf337f1786 |
---|---|
61 } | 61 } |
62 | 62 |
63 static int | 63 static int |
64 udp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) | 64 udp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) |
65 { | 65 { |
66 URL_t *url; | |
67 | |
68 mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_UDP, URL: %s\n", stream->url); | 66 mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_UDP, URL: %s\n", stream->url); |
69 stream->streaming_ctrl = streaming_ctrl_new (); | 67 stream->streaming_ctrl = streaming_ctrl_new (); |
70 if (!stream->streaming_ctrl) | 68 if (!stream->streaming_ctrl) |
71 return STREAM_ERROR; | 69 return STREAM_ERROR; |
72 | 70 |
73 stream->streaming_ctrl->bandwidth = network_bandwidth; | 71 stream->streaming_ctrl->bandwidth = network_bandwidth; |
74 url = url_new (stream->url); | 72 stream->streaming_ctrl->url = url_new(stream->url); |
75 stream->streaming_ctrl->url = check4proxies (url); | |
76 | 73 |
77 if (url->port == 0) | 74 if (stream->streaming_ctrl->url->port == 0) |
78 { | 75 { |
79 mp_msg (MSGT_NETWORK, MSGL_ERR, | 76 mp_msg (MSGT_NETWORK, MSGL_ERR, |
80 "You must enter a port number for UDP streams!\n"); | 77 "You must enter a port number for UDP streams!\n"); |
81 streaming_ctrl_free (stream->streaming_ctrl); | 78 streaming_ctrl_free (stream->streaming_ctrl); |
82 stream->streaming_ctrl = NULL; | 79 stream->streaming_ctrl = NULL; |