[FFmpeg-devel] [PATCH 5/8] vsrc_buffer: return EAGAIN if no frame is available.

Nicolas George nicolas.george at normalesup.org
Fri Apr 20 12:31:44 CEST 2012


This is not an erroneous condition, do not print a warning.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 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 ba00b2b..a22665b 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);
 
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list