Mercurial > libavformat.hg
diff utils.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 | 4d1d3e0ba6d7 |
children | 52bff8f1701f |
line wrap: on
line diff
--- a/utils.c Sun Jun 27 09:07:35 2010 +0000 +++ b/utils.c Sun Jun 27 14:16:46 2010 +0000 @@ -3493,6 +3493,8 @@ pkt_dump_internal(avcl, NULL, level, pkt, dump_payload); } +#if LIBAVFORMAT_VERSION_MAJOR < 53 +attribute_deprecated void ff_url_split(char *proto, int proto_size, char *authorization, int authorization_size, char *hostname, int hostname_size, @@ -3500,6 +3502,22 @@ char *path, int path_size, const char *url) { + av_url_split(proto, proto_size, + authorization, authorization_size, + hostname, hostname_size, + port_ptr, + path, path_size, + url); +} +#endif + +void av_url_split(char *proto, int proto_size, + char *authorization, int authorization_size, + char *hostname, int hostname_size, + int *port_ptr, + char *path, int path_size, + const char *url) +{ const char *p, *ls, *at, *col, *brk; if (port_ptr) *port_ptr = -1;