aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tee.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-02-13 01:50:12 +0100
committerMarton Balint <cus@passwd.hu>2023-02-16 01:18:45 +0100
commit927042b409fc19a62085888b3a349d7e9e013b2e (patch)
treecea29731316882fce243bddbb7e30229d92c3895 /libavformat/tee.c
parenteee6492df7a7dc6f70170eb6e8a14ae00d12afc8 (diff)
downloadffmpeg-927042b409fc19a62085888b3a349d7e9e013b2e.tar.gz
avformat: deprecate AVFormatContext io_close callback
io_close2 should be used instead. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 960b2ea574..cb555f52fd 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -236,7 +236,11 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
av_dict_copy(&avf2->metadata, avf->metadata, 0);
avf2->opaque = avf->opaque;
avf2->io_open = avf->io_open;
+#if FF_API_AVFORMAT_IO_CLOSE
+FF_DISABLE_DEPRECATION_WARNINGS
avf2->io_close = avf->io_close;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
avf2->io_close2 = avf->io_close2;
avf2->interrupt_callback = avf->interrupt_callback;
avf2->flags = avf->flags;