Commit 9658e66f authored by mstorsjo's avatar mstorsjo

Reassemble the RTSP URL before replacing hostname with the numerical IP


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22681 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 897779fa
...@@ -1505,6 +1505,12 @@ redirect: ...@@ -1505,6 +1505,12 @@ redirect:
} }
} }
/* Construct the URI used in request; this is similar to s->filename,
* but with authentication credentials removed and RTSP specific options
* stripped out. */
ff_url_join(rt->control_uri, sizeof(rt->control_uri), "rtsp", NULL,
host, port, "%s", path);
/* open the tcp connexion */ /* open the tcp connexion */
ff_url_join(tcpname, sizeof(tcpname), "tcp", NULL, host, port, NULL); ff_url_join(tcpname, sizeof(tcpname), "tcp", NULL, host, port, NULL);
if (url_open(&rtsp_hd, tcpname, URL_RDWR) < 0) { if (url_open(&rtsp_hd, tcpname, URL_RDWR) < 0) {
...@@ -1520,11 +1526,6 @@ redirect: ...@@ -1520,11 +1526,6 @@ redirect:
NULL, 0, NI_NUMERICHOST); NULL, 0, NI_NUMERICHOST);
} }
/* Construct the URI used in request; this is similar to s->filename,
* but with authentication credentials removed and RTSP specific options
* stripped out. */
ff_url_join(rt->control_uri, sizeof(rt->control_uri), "rtsp", NULL,
host, port, "%s", path);
/* request options supported by the server; this also detects server /* request options supported by the server; this also detects server
* type */ * type */
for (rt->server_type = RTSP_SERVER_RTP;;) { for (rt->server_type = RTSP_SERVER_RTP;;) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment