Revision 5652bb94 libavformat/avio.c

View differences:

libavformat/avio.c
29 29
#if CONFIG_NETWORK
30 30
#include "network.h"
31 31
#endif
32
#include "url.h"
32 33

  
33 34
#if FF_API_URL_CLASS
34 35
/** @name Logging context. */
......
167 168
    *puc = NULL;
168 169
    return ret;
169 170
}
171
int url_alloc(URLContext **puc, const char *filename, int flags)
172
{
173
    return ffurl_alloc(puc, filename, flags);
174
}
170 175
#endif
171 176

  
172 177
#define URL_SCHEME_CHARS                        \
......
174 179
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"                \
175 180
    "0123456789+-."
176 181

  
177
int url_alloc(URLContext **puc, const char *filename, int flags)
182
int ffurl_alloc(URLContext **puc, const char *filename, int flags)
178 183
{
179 184
    URLProtocol *up;
180 185
    char proto_str[128], proto_nested[128], *ptr;
......
204 209

  
205 210
int url_open(URLContext **puc, const char *filename, int flags)
206 211
{
207
    int ret = url_alloc(puc, filename, flags);
212
    int ret = ffurl_alloc(puc, filename, flags);
208 213
    if (ret)
209 214
        return ret;
210 215
    ret = url_connect(*puc);

Also available in: Unified diff