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)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 23 Apr 2012 12:13:40 +0000 (14:13 +0200)
This is not an erroneous condition, do not print a warning.

libavfilter/vsrc_buffer.c

index ba00b2b..a22665b 100644 (file)
@@ -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);