]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfilter.h
lavfi: rename vf_setpts.c to f_setpts.c
[ffmpeg] / libavfilter / avfilter.h
index 9891a7222778d4d0606bd7439e6161ab395926d3..c0575ce1d1019a092a6a636790d05f84a83a5ae2 100644 (file)
@@ -697,6 +697,18 @@ struct AVFilterLink {
      * by the filters.
      */
     AVFilterBufferRef *cur_buf_copy;
+
+    /**
+     * True if the link is closed.
+     * If set, all attemps of start_frame, filter_samples or request_frame
+     * will fail with AVERROR_EOF, and if necessary the reference will be
+     * destroyed.
+     * If request_frame returns AVERROR_EOF, this flag is set on the
+     * corresponding link.
+     * It can be set also be set by either the source or the destination
+     * filter.
+     */
+    int closed;
 };
 
 /**
@@ -716,6 +728,11 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
  */
 void avfilter_link_free(AVFilterLink **link);
 
+/**
+ * Set the closed field of a link.
+ */
+void avfilter_link_set_closed(AVFilterLink *link, int closed);
+
 /**
  * Negotiate the media format, dimensions, etc of all inputs to a filter.
  *