diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-07 12:17:50 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-11-18 11:01:16 +0100 |
commit | 45f511ece7aaf730d51dff5b086e32bc43fc78ce (patch) | |
tree | 120b4bdee31e8869b0d52fac7a3c52fcd7478136 /libavformat/avio.h | |
parent | 40972f7c54e013d2da8bf42cb34ab25cfea75eab (diff) | |
download | ffmpeg-45f511ece7aaf730d51dff5b086e32bc43fc78ce.tar.gz |
avio: Mark the old interrupt callback mechanism as deprecated
Prepare for removing it at an upcoming major bump.
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index b665bb3b3b..d7977022bf 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -389,13 +389,17 @@ attribute_deprecated int url_exist(const char *url); */ int avio_check(const char *url, int flags); +#if FF_API_OLD_INTERRUPT_CB /** * The callback is called in blocking functions to test regulary if * asynchronous interruption is needed. AVERROR_EXIT is returned * in this case by the interrupted function. 'NULL' means no interrupt * callback is given. + * @deprecated Use interrupt_callback in AVFormatContext/avio_open2 + * instead. */ -void avio_set_interrupt_cb(int (*interrupt_cb)(void)); +attribute_deprecated void avio_set_interrupt_cb(int (*interrupt_cb)(void)); +#endif /** * Allocate and initialize an AVIOContext for buffered I/O. It must be later |