Revision 32a97d46

View differences:

libavformat/avio.c
200 200
{
201 201
    return ffurl_close(h);
202 202
}
203
int64_t url_filesize(URLContext *h)
204
{
205
    return ffurl_size(h);
206
}
203 207
#endif
204 208

  
205 209
#define URL_SCHEME_CHARS                        \
......
338 342
    return 1;
339 343
}
340 344

  
341
int64_t url_filesize(URLContext *h)
345
int64_t ffurl_size(URLContext *h)
342 346
{
343 347
    int64_t pos, size;
344 348

  
libavformat/avio.h
110 110
attribute_deprecated int url_write(URLContext *h, const unsigned char *buf, int size);
111 111
attribute_deprecated int64_t url_seek(URLContext *h, int64_t pos, int whence);
112 112
attribute_deprecated int url_close(URLContext *h);
113
attribute_deprecated int64_t url_filesize(URLContext *h);
113 114
#endif
114 115

  
115 116
/**
......
119 120
int url_exist(const char *url);
120 121

  
121 122
/**
122
 * Return the filesize of the resource accessed by h, AVERROR(ENOSYS)
123
 * if the operation is not supported by h, or another negative value
124
 * corresponding to an AVERROR error code in case of failure.
125
 */
126
int64_t url_filesize(URLContext *h);
127

  
128
/**
129 123
 * Return the file descriptor associated with this URL. For RTP, this
130 124
 * will return only the RTP file descriptor, not the RTCP file descriptor.
131 125
 *
libavformat/concat.c
105 105
            break;
106 106

  
107 107
        /* creating size */
108
        if ((size = url_filesize(uc)) < 0) {
108
        if ((size = ffurl_size(uc)) < 0) {
109 109
            ffurl_close(uc);
110 110
            err = AVERROR(ENOSYS);
111 111
            break;
libavformat/url.h
111 111
 */
112 112
int ffurl_close(URLContext *h);
113 113

  
114
/**
115
 * Return the filesize of the resource accessed by h, AVERROR(ENOSYS)
116
 * if the operation is not supported by h, or another negative value
117
 * corresponding to an AVERROR error code in case of failure.
118
 */
119
int64_t ffurl_size(URLContext *h);
120

  
114 121
#endif //AVFORMAT_URL_H

Also available in: Unified diff