diff options
author | Nicolas George <george@nsup.org> | 2015-09-24 11:07:42 +0300 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-12-22 18:04:30 +0300 |
commit | 108b4de5529a75b06da72b974b26625a8067001f (patch) | |
tree | c38c0fc0600038a55116cbc3246e8158c491df89 /libavfilter/internal.h | |
parent | 39a09e995d32d16e4f8c87a6ff5273cb9d98146e (diff) |
lavfi: replace link.closed by link.status.
The status field can carry any error code instead of just EOF.
Also only update it through a wrapper function and provide a timestamp.
Update the few filters that used it directly.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 6ae1535281..836733ff76 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -226,6 +226,21 @@ int ff_parse_channel_layout(int64_t *ret, int *nret, const char *arg, void ff_update_link_current_pts(AVFilterLink *link, int64_t pts); +/** + * Set the status field of a link from the source filter. + * The pts should reflect the timestamp of the status change, + * in link time base and relative to the frames timeline. + * In particular, for AVERROR_EOF, it should reflect the + * end time of the last frame. + */ +void ff_avfilter_link_set_in_status(AVFilterLink *link, int status, int64_t pts); + +/** + * Set the status field of a link from the destination filter. + * The pts should probably be left unset (AV_NOPTS_VALUE). + */ +void ff_avfilter_link_set_out_status(AVFilterLink *link, int status, int64_t pts); + void ff_command_queue_pop(AVFilterContext *filter); /* misc trace functions */ |