[FFmpeg-cvslog] vsrc_buffer: return EAGAIN if no frame is available.
Nicolas George
git at videolan.org
Mon Apr 23 14:30:39 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Apr 17 18:31:25 2012 +0200| [f75ee4031e0d898ba1cb3269f09dcf7e9ee99b07] | committer: Nicolas George
vsrc_buffer: return EAGAIN if no frame is available.
This is not an erroneous condition, do not print a warning.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f75ee4031e0d898ba1cb3269f09dcf7e9ee99b07
---
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);
More information about the ffmpeg-cvslog
mailing list