Mercurial > mplayer.hg
diff stream/stream_rtsp.c @ 35301:8f6d3f8ffa61
Add url_new_with_proxy function to reduce code duplication and memleaks.
author | reimar |
---|---|
date | Sat, 10 Nov 2012 13:19:29 +0000 |
parents | c3c9652058f8 |
children |
line wrap: on
line diff
--- a/stream/stream_rtsp.c Sat Nov 10 13:18:38 2012 +0000 +++ b/stream/stream_rtsp.c Sat Nov 10 13:19:29 2012 +0000 @@ -141,16 +141,13 @@ static int rtsp_streaming_open (stream_t *stream, int mode, void *opts, int *file_format) { - URL_t *url; - mp_msg (MSGT_OPEN, MSGL_V, "STREAM_RTSP, URL: %s\n", stream->url); stream->streaming_ctrl = streaming_ctrl_new (); if (!stream->streaming_ctrl) 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_with_proxy(stream->url); stream->fd = -1; index_mode = -1; /* prevent most RTSP streams from locking due to -idx */