From: Nicolas George Date: Tue, 17 Apr 2012 16:31:25 +0000 (+0200) Subject: vsrc_buffer: return EAGAIN if no frame is available. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f75ee4031e0d898ba1cb3269f09dcf7e9ee99b07;p=ffmpeg vsrc_buffer: return EAGAIN if no frame is available. This is not an erroneous condition, do not print a warning. --- diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index ba00b2b6511..a22665b8e73 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -249,9 +249,7 @@ static int request_frame(AVFilterLink *link) if (!av_fifo_size(c->fifo)) { if (c->eof) return AVERROR_EOF; - av_log(link->src, AV_LOG_WARNING, - "request_frame() called with no available frame!\n"); - return AVERROR(EINVAL); + return AVERROR(EAGAIN); } av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);