[FFmpeg-cvslog] avfilter/avfilter: Remove deprecated avfilter_link_set_closed()

Andreas Rheinhardt git at videolan.org
Wed Apr 28 00:16:00 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sat Mar  6 18:54:45 2021 +0100| [4de2b035a736ca8b5b7abbee323327031a50873a] | committer: James Almer

avfilter/avfilter: Remove deprecated avfilter_link_set_closed()

Deprecated in 39a09e995d32d16e4f8c87a6ff5273cb9d98146e.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4de2b035a736ca8b5b7abbee323327031a50873a
---

 libavfilter/avfilter.c | 6 ------
 libavfilter/avfilter.h | 9 ---------
 libavfilter/version.h  | 3 ---
 3 files changed, 18 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index c0453be4de..6e12c8fa05 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -225,12 +225,6 @@ void ff_avfilter_link_set_out_status(AVFilterLink *link, int status, int64_t pts
     ff_filter_set_ready(link->src, 200);
 }
 
-#if FF_API_FILTER_LINK_SET_CLOSED
-void avfilter_link_set_closed(AVFilterLink *link, int closed)
-{
-    ff_avfilter_link_set_out_status(link, closed ? AVERROR_EOF : 0, AV_NOPTS_VALUE);
-}
-#endif
 int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
                            unsigned filt_srcpad_idx, unsigned filt_dstpad_idx)
 {
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 54fa656b01..b82f72d040 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -665,15 +665,6 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
  */
 void avfilter_link_free(AVFilterLink **link);
 
-#if FF_API_FILTER_LINK_SET_CLOSED
-/**
- * Set the closed field of a link.
- * @deprecated applications are not supposed to mess with links, they should
- * close the sinks.
- */
-attribute_deprecated
-void avfilter_link_set_closed(AVFilterLink *link, int closed);
-#endif
 /**
  * Negotiate the media format, dimensions, etc of all inputs to a filter.
  *
diff --git a/libavfilter/version.h b/libavfilter/version.h
index 68923e4bd4..ebac663e0d 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -53,9 +53,6 @@
 #ifndef FF_API_SWS_PARAM_OPTION
 #define FF_API_SWS_PARAM_OPTION             (LIBAVFILTER_VERSION_MAJOR < 8)
 #endif
-#ifndef FF_API_FILTER_LINK_SET_CLOSED
-#define FF_API_FILTER_LINK_SET_CLOSED       (LIBAVFILTER_VERSION_MAJOR < 8)
-#endif
 #ifndef FF_API_BUFFERSINK_ALLOC
 #define FF_API_BUFFERSINK_ALLOC             (LIBAVFILTER_VERSION_MAJOR < 9)
 #endif



More information about the ffmpeg-cvslog mailing list