Browse code

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>

Nicolas George authored on 2012/04/18 01:31:25
Showing 1 changed files
... ...
@@ -175,9 +175,7 @@ static int request_frame(AVFilterLink *link)
175 175
     if (!av_fifo_size(c->fifo)) {
176 176
         if (c->eof)
177 177
             return AVERROR_EOF;
178
-        av_log(link->src, AV_LOG_ERROR,
179
-               "request_frame() called with no available frame!\n");
180
-        return AVERROR(EINVAL);
178
+        return AVERROR(EAGAIN);
181 179
     }
182 180
     av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
183 181