diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-08-19 19:26:58 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-08-22 19:04:30 +0200 |
commit | beeba9161a091d4d352e6fe5224c86c383f1aaa7 (patch) | |
tree | 66d196392f6052e5ee633f93d721fcb3e289ef77 /libavfilter/avfilter.h | |
parent | ac07f941ae1626bfd8e201a3771c67e54073e31e (diff) | |
download | ffmpeg-beeba9161a091d4d352e6fe5224c86c383f1aaa7.tar.gz |
lavfi: add a closed field to AVFilerLink.
It will help forward errors and maintain consistency.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 9891a72227..c0575ce1d1 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -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; }; /** @@ -717,6 +729,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. * * @param filter the filter to negotiate the properties for its inputs |