Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-19 19:08:27 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-04-23 16:13:59 +0400
commite11110dee40837b766921855221968e1541230d3 (patch)
treeac9daecb31f4af601fa43fb489bf0634d017a5a3 /libavfilter/sink_buffer.c
parent2d6522bab0011a91a50aaad4b206d0a256b89621 (diff)
buffersink: add AV_BUFFERSINK_FLAG_NO_REQUEST.
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r--libavfilter/sink_buffer.c2
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;
}