diff options
author | Nicolas George <george@nsup.org> | 2015-09-24 10:07:42 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-12-22 16:04:30 +0100 |
commit | 108b4de5529a75b06da72b974b26625a8067001f (patch) | |
tree | c38c0fc0600038a55116cbc3246e8158c491df89 /libavfilter/buffersink.c | |
parent | 39a09e995d32d16e4f8c87a6ff5273cb9d98146e (diff) | |
download | ffmpeg-108b4de5529a75b06da72b974b26625a8067001f.tar.gz |
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/buffersink.c')
-rw-r--r-- | libavfilter/buffersink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 5db86abd8a..7a19df2c3a 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -134,8 +134,8 @@ int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFr /* no picref available, fetch it from the filterchain */ while (!av_fifo_size(buf->fifo)) { - if (inlink->closed) - return AVERROR_EOF; + if (inlink->status) + return inlink->status; if (flags & AV_BUFFERSINK_FLAG_NO_REQUEST) return AVERROR(EAGAIN); if ((ret = ff_request_frame(inlink)) < 0) |