[FFmpeg-devel] [PATCH 2/3] tls: parse uri path options to underlying tcp URLContext
Peter Ross
pross at xvid.org
Wed Jul 18 15:52:24 CEST 2012
---
libavformat/tls.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/tls.c b/libavformat/tls.c
index 072c2b9..8c1403c 100644
--- a/libavformat/tls.c
+++ b/libavformat/tls.c
@@ -148,7 +148,7 @@ static int tls_open(URLContext *h, const char *uri, int flags)
TLSContext *c = h->priv_data;
int ret;
int port;
- char buf[200], host[200];
+ char buf[200], host[200], path[1024];
int numerichost = 0;
struct addrinfo hints = { 0 }, *ai = NULL;
const char *proxy_path;
@@ -160,8 +160,8 @@ static int tls_open(URLContext *h, const char *uri, int flags)
use_proxy = (proxy_path != NULL) && !getenv("no_proxy") &&
av_strstart(proxy_path, "http://", NULL);
- av_url_split(NULL, 0, NULL, 0, host, sizeof(host), &port, NULL, 0, uri);
- ff_url_join(buf, sizeof(buf), "tcp", NULL, host, port, NULL);
+ av_url_split(NULL, 0, NULL, 0, host, sizeof(host), &port, path, sizeof(path), uri);
+ ff_url_join(buf, sizeof(buf), "tcp", NULL, host, port, path);
hints.ai_flags = AI_NUMERICHOST;
if (!getaddrinfo(host, NULL, &hints, &ai)) {
--
1.7.10.4
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120718/da9242d7/attachment.asc>
More information about the ffmpeg-devel
mailing list