Mercurial > mplayer.hg
comparison stream/stream_rtp.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 |
---|---|
69 } | 69 } |
70 | 70 |
71 static int | 71 static int |
72 rtp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) | 72 rtp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) |
73 { | 73 { |
74 URL_t *url; | |
75 | |
76 mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_RTP, URL: %s\n", stream->url); | 74 mp_msg (MSGT_OPEN, MSGL_INFO, "STREAM_RTP, URL: %s\n", stream->url); |
77 stream->streaming_ctrl = streaming_ctrl_new (); | 75 stream->streaming_ctrl = streaming_ctrl_new (); |
78 if (!stream->streaming_ctrl) | 76 if (!stream->streaming_ctrl) |
79 return STREAM_ERROR; | 77 return STREAM_ERROR; |
80 | 78 |
81 stream->streaming_ctrl->bandwidth = network_bandwidth; | 79 stream->streaming_ctrl->bandwidth = network_bandwidth; |
82 url = url_new (stream->url); | 80 stream->streaming_ctrl->url = url_new(stream->url); |
83 stream->streaming_ctrl->url = check4proxies (url); | |
84 | 81 |
85 if (url->port == 0) | 82 if (stream->streaming_ctrl->url->port == 0) |
86 { | 83 { |
87 mp_msg (MSGT_NETWORK, MSGL_ERR, | 84 mp_msg (MSGT_NETWORK, MSGL_ERR, |
88 "You must enter a port number for RTP streams!\n"); | 85 "You must enter a port number for RTP streams!\n"); |
89 streaming_ctrl_free (stream->streaming_ctrl); | 86 streaming_ctrl_free (stream->streaming_ctrl); |
90 stream->streaming_ctrl = NULL; | 87 stream->streaming_ctrl = NULL; |