diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-17 18:31:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-05-05 12:59:18 +0200 |
commit | 5cb4f1a1276193c12805e5e871e10bc3fffc207f (patch) | |
tree | 9e4dc0d1ba278aa13d0b2287b18f9462a2a80c09 /libavfilter | |
parent | ddffe3de4352eb025b78843cf3b44501056b54bb (diff) | |
download | ffmpeg-5cb4f1a1276193c12805e5e871e10bc3fffc207f.tar.gz |
vsrc_buffer: return EAGAIN if no frame is available.
This is not an erroneous condition, do not print a warning.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter')
-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 742943aa57..1ace368413 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -175,9 +175,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_ERROR, - "request_frame() called with no available frame!\n"); - return AVERROR(EINVAL); + return AVERROR(EAGAIN); } av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL); |