Mercurial > libavformat.hg
comparison rtsp.c @ 6148:06766607951e libavformat
RTSP: Add the auth credentials to the HTTP tunnel URL, too
author | mstorsjo |
---|---|
date | Sat, 19 Jun 2010 21:57:45 +0000 |
parents | 9f9a4be98cfb |
children | f403b7c0e51b |
comparison
equal
deleted
inserted
replaced
6147:3877522243ec | 6148:06766607951e |
---|---|
1571 /* set up initial handshake for tunneling */ | 1571 /* set up initial handshake for tunneling */ |
1572 char httpname[1024]; | 1572 char httpname[1024]; |
1573 char sessioncookie[17]; | 1573 char sessioncookie[17]; |
1574 char headers[1024]; | 1574 char headers[1024]; |
1575 | 1575 |
1576 ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, "%s", path); | 1576 ff_url_join(httpname, sizeof(httpname), "http", auth, host, port, "%s", path); |
1577 snprintf(sessioncookie, sizeof(sessioncookie), "%08x%08x", | 1577 snprintf(sessioncookie, sizeof(sessioncookie), "%08x%08x", |
1578 av_get_random_seed(), av_get_random_seed()); | 1578 av_get_random_seed(), av_get_random_seed()); |
1579 | 1579 |
1580 /* GET requests */ | 1580 /* GET requests */ |
1581 if (url_open(&rt->rtsp_hd, httpname, URL_RDONLY) < 0) { | 1581 if (url_open(&rt->rtsp_hd, httpname, URL_RDONLY) < 0) { |