Commit f75ee403 authored by Nicolas George's avatar Nicolas George

vsrc_buffer: return EAGAIN if no frame is available.

This is not an erroneous condition, do not print a warning.
parent 2ce79727
...@@ -249,9 +249,7 @@ static int request_frame(AVFilterLink *link) ...@@ -249,9 +249,7 @@ static int request_frame(AVFilterLink *link)
if (!av_fifo_size(c->fifo)) { if (!av_fifo_size(c->fifo)) {
if (c->eof) if (c->eof)
return AVERROR_EOF; return AVERROR_EOF;
av_log(link->src, AV_LOG_WARNING, return AVERROR(EAGAIN);
"request_frame() called with no available frame!\n");
return AVERROR(EINVAL);
} }
av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL); av_fifo_generic_read(c->fifo, &buf, sizeof(buf), NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment