[FFmpeg-cvslog] lavfi: deprecate avfilter_link_set_closed().

Nicolas George git at videolan.org
Tue Dec 22 16:11:22 CET 2015


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Thu Sep 24 10:06:26 2015 +0200| [39a09e995d32d16e4f8c87a6ff5273cb9d98146e] | committer: Nicolas George

lavfi: deprecate avfilter_link_set_closed().

Applications are not supposed to mess with links,
they should close the sinks.
Furthermore, this function does not distinguish what end
of the link caused the close and does not have a timestamp.

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

 doc/APIchanges         |    6 ++++++
 libavfilter/avfilter.h |    3 +++
 libavfilter/version.h  |    2 +-
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index fb15411..013e870 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -14,6 +14,12 @@ libavutil:     2015-08-28
 
 
 API changes, most recent first:
+
+2015-12-22 - xxxxxxx - lavfi 6.21.101 - avfilter.h
+  Deprecate avfilter_link_set_closed().
+  Applications are not supposed to mess with links,
+  they should close the sinks.
+
 2015-12-17 - lavc 57.18.100 / 57.11.0 - avcodec.h dirac.h
   xxxxxxx - Add av_packet_add_side_data().
   xxxxxxx - Add AVCodecContext.coded_side_data.
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index f2a934e..5022036 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -546,7 +546,10 @@ int avfilter_link_get_channels(AVFilterLink *link);
 
 /**
  * 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);
 
 /**
diff --git a/libavfilter/version.h b/libavfilter/version.h
index a7832e0..79a1f01 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -31,7 +31,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR   6
 #define LIBAVFILTER_VERSION_MINOR  21
-#define LIBAVFILTER_VERSION_MICRO 100
+#define LIBAVFILTER_VERSION_MICRO 101
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
                                                LIBAVFILTER_VERSION_MINOR, \



More information about the ffmpeg-cvslog mailing list