]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/avfilter: Remove deprecated avfilter_link_set_closed()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 6 Mar 2021 17:54:45 +0000 (18:54 +0100)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Apr 2021 13:43:11 +0000 (10:43 -0300)
Deprecated in 39a09e995d32d16e4f8c87a6ff5273cb9d98146e.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/version.h

index c0453be4de35281715a6ee560a196bc331829a78..6e12c8fa05be2959d5e900fd6ee637a3f044e0e6 100644 (file)
@@ -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)
 {
index 54fa656b01c7b121f31f8d0440fc7ebd5bce9dee..b82f72d040ce02c856f572f2af319987c0950c74 100644 (file)
@@ -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.
  *
index 68923e4bd4a76563753573924c63b676112b8fb7..ebac663e0de7bc82c8ee353666ee7c410c061b67 100644 (file)
@@ -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