[FFmpeg-cvslog] avio: deprecate url_exist in favor of avio_check.
Anton Khirnov
git at videolan.org
Thu Apr 14 03:24:36 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Apr 12 09:46:45 2011 +0200| [4bde56d1afdeb5d8c998bb9f994b0ea829ccf753] | committer: Anton Khirnov
avio: deprecate url_exist in favor of avio_check.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4bde56d1afdeb5d8c998bb9f994b0ea829ccf753
---
libavformat/avio.c | 2 ++
libavformat/avio.h | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 18b2ee6..cb923a7 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -365,6 +365,7 @@ int ffurl_close(URLContext *h)
return ret;
}
+#if FF_API_OLD_AVIO
int url_exist(const char *filename)
{
URLContext *h;
@@ -373,6 +374,7 @@ int url_exist(const char *filename)
ffurl_close(h);
return 1;
}
+#endif
int avio_check(const char *url, int flags)
{
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 14aa599..f4674a4 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -339,13 +339,14 @@ attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_siz
/** return the written or read size */
attribute_deprecated int url_close_buf(AVIOContext *s);
-#endif // FF_API_OLD_AVIO
/**
* Return a non-zero value if the resource indicated by url
* exists, 0 otherwise.
+ * @deprecated Use avio_check instead.
*/
-int url_exist(const char *url);
+attribute_deprecated int url_exist(const char *url);
+#endif // FF_API_OLD_AVIO
/**
* Return AVIO_* access flags corresponding to the access permissions
More information about the ffmpeg-cvslog
mailing list