avio: deprecate url_max_packet_size().

URLContext.max_packet_size should be used directly.
This commit is contained in:
Anton Khirnov
2011-03-31 17:58:04 +02:00
parent 1869ea03b7
commit 5958df341d
6 changed files with 9 additions and 19 deletions

View File

@ -208,6 +208,10 @@ int url_get_file_handle(URLContext *h)
{
return ffurl_get_file_handle(h);
}
int url_get_max_packet_size(URLContext *h)
{
return h->max_packet_size;
}
#endif
#define URL_SCHEME_CHARS \
@ -368,11 +372,6 @@ int ffurl_get_file_handle(URLContext *h)
return h->prot->url_get_file_handle(h);
}
int url_get_max_packet_size(URLContext *h)
{
return h->max_packet_size;
}
void url_get_filename(URLContext *h, char *buf, int buf_size)
{
av_strlcpy(buf, h->filename, buf_size);