diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-31 18:00:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-04 17:45:20 +0200 |
commit | 727c7aa02642c97b68356d40d1a8e9e835ba1a69 (patch) | |
tree | a33890f30f32c246a39f056508c1496351625b7f /libavformat/avio.c | |
parent | 5958df341de69d94b9958c10cc4aaca510b8cd24 (diff) | |
download | ffmpeg-727c7aa02642c97b68356d40d1a8e9e835ba1a69.tar.gz |
avio: deprecate url_get_filename().
URLContext.filename should be used directly.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index a51bac1e76..24cec8fde3 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -212,6 +212,10 @@ 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); +} #endif #define URL_SCHEME_CHARS \ @@ -372,12 +376,6 @@ int ffurl_get_file_handle(URLContext *h) return h->prot->url_get_file_handle(h); } -void url_get_filename(URLContext *h, char *buf, int buf_size) -{ - av_strlcpy(buf, h->filename, buf_size); -} - - static int default_interrupt_cb(void) { return 0; |