summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-31 17:58:04 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-04 17:45:20 +0200
commit5958df341de69d94b9958c10cc4aaca510b8cd24 (patch)
tree07f936eda1252378b930570a44d9ec2ffc296e52 /libavformat/avio.c
parent1869ea03b7fb8e3db2f034f4214e03bd3f8b3d30 (diff)
avio: deprecate url_max_packet_size().
URLContext.max_packet_size should be used directly.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index a0eee9355e..a51bac1e76 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -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);