[FFmpeg-devel] [PATCH 3/5] lavfi: deprecate avfilter_link_set_closed().

Nicolas George george at nsup.org
Sun Nov 29 17:21:50 CET 2015


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.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/avfilter.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index a6aa919..58a0cbd 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -541,7 +541,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);
 
 /**
-- 
2.6.2



More information about the ffmpeg-devel mailing list