diff options
Diffstat (limited to 'stream/stream_udp.c')
-rw-r--r-- | stream/stream_udp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stream/stream_udp.c b/stream/stream_udp.c index 5b901cf543..2654a01577 100644 --- a/stream/stream_udp.c +++ b/stream/stream_udp.c @@ -61,7 +61,6 @@ udp_streaming_start (stream_t *stream) static int 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); @@ -70,10 +69,9 @@ udp_stream_open (stream_t *stream, int mode, void *opts, int *file_format) return STREAM_ERROR; stream->streaming_ctrl->bandwidth = network_bandwidth; - url = url_new (stream->url); - stream->streaming_ctrl->url = check4proxies (url); + stream->streaming_ctrl->url = url_new(stream->url); - if (url->port == 0) + if (stream->streaming_ctrl->url->port == 0) { mp_msg (MSGT_NETWORK, MSGL_ERR, "You must enter a port number for UDP streams!\n"); |