[FFmpeg-cvslog] vsrc_buffer: return EAGAIN if no frame is available.
Nicolas George
git at videolan.org
Sat May 5 20:36:37 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Apr 17 18:31:25 2012 +0200| [5cb4f1a1276193c12805e5e871e10bc3fffc207f] | committer: Anton Khirnov
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 at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5cb4f1a1276193c12805e5e871e10bc3fffc207f
---
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 742943a..1ace368 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);
More information about the ffmpeg-cvslog
mailing list