vsrc_buffer: return EAGAIN if no frame is available.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 17 Apr 2012 16:31:25 +0000 (18:31 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 5 May 2012 10:59:18 +0000 (12:59 +0200)
This is not an erroneous condition, do not print a warning.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/vsrc_buffer.c

index 742943a..1ace368 100644 (file)
@@ -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);