diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-17 18:31:25 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-23 14:13:40 +0200 |
commit | f75ee4031e0d898ba1cb3269f09dcf7e9ee99b07 (patch) | |
tree | b52f7d9baa6462f21fc9cb21b99f76935b1031e1 | |
parent | 2ce797277926358d98593c3743d57eb037d44956 (diff) | |
download | ffmpeg-f75ee4031e0d898ba1cb3269f09dcf7e9ee99b07.tar.gz |
vsrc_buffer: return EAGAIN if no frame is available.
This is not an erroneous condition, do not print a warning.
-rw-r--r-- | libavfilter/vsrc_buffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index ba00b2b651..a22665b8e7 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); |