diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-19 17:08:27 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-23 14:13:59 +0200 |
commit | e11110dee40837b766921855221968e1541230d3 (patch) | |
tree | ac9daecb31f4af601fa43fb489bf0634d017a5a3 /libavfilter/sink_buffer.c | |
parent | 2d6522bab0011a91a50aaad4b206d0a256b89621 (diff) | |
download | ffmpeg-e11110dee40837b766921855221968e1541230d3.tar.gz |
buffersink: add AV_BUFFERSINK_FLAG_NO_REQUEST.
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index 8eb695e167..b0cc519217 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -126,6 +126,8 @@ int av_buffersink_get_buffer_ref(AVFilterContext *ctx, /* no picref available, fetch it from the filterchain */ if (!av_fifo_size(buf->fifo)) { + if (flags & AV_BUFFERSINK_FLAG_NO_REQUEST) + return AVERROR(EAGAIN); if ((ret = avfilter_request_frame(inlink)) < 0) return ret; } |