comparison http.c @ 6182:4fc5e0e4e1cd libavformat

Make ff_url_split() public ff_url_split() is retained as an alias, as it was used by ffserver, to avoid breaking ABI compatibility with it.
author mru
date Sun, 27 Jun 2010 14:16:46 +0000
parents 72ea866c62fd
children 89adb1f9ff50
comparison
equal deleted inserted replaced
6181:cb49c916b7f4 6182:4fc5e0e4e1cd
103 av_strstart(proxy_path, "http://", NULL); 103 av_strstart(proxy_path, "http://", NULL);
104 104
105 /* fill the dest addr */ 105 /* fill the dest addr */
106 redo: 106 redo:
107 /* needed in any case to build the host string */ 107 /* needed in any case to build the host string */
108 ff_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port, 108 av_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
109 path1, sizeof(path1), s->location); 109 path1, sizeof(path1), s->location);
110 ff_url_join(hoststr, sizeof(hoststr), NULL, NULL, hostname, port, NULL); 110 ff_url_join(hoststr, sizeof(hoststr), NULL, NULL, hostname, port, NULL);
111 111
112 if (use_proxy) { 112 if (use_proxy) {
113 ff_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port, 113 av_url_split(NULL, 0, auth, sizeof(auth), hostname, sizeof(hostname), &port,
114 NULL, 0, proxy_path); 114 NULL, 0, proxy_path);
115 path = s->location; 115 path = s->location;
116 } else { 116 } else {
117 if (path1[0] == '\0') 117 if (path1[0] == '\0')
118 path = "/"; 118 path = "/";