summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-20 01:00:59 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-25 12:42:19 +0200
commitcf06e3e4dd8c1023fb1dcad905f3f77fdc1cf3fb (patch)
treec21e5941d3ac8803d4f3f51be7f4838d76249059 /libavfilter
parent6b5e1825406a8180c72863bf63964ae50a8499db (diff)
vsrc_buffer: return an error code if no frames are available
Also decrease the log level of the corresponding message to WARNING, since the error is not fatal.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vsrc_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 6a2fcbf36e..d1e6ffd57a 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -180,9 +180,9 @@ static int request_frame(AVFilterLink *link)
BufferSourceContext *c = link->src->priv;
if (!c->picref) {
- av_log(link->src, AV_LOG_ERROR,
+ av_log(link->src, AV_LOG_WARNING,
"request_frame() called with no available frame!\n");
- //return -1;
+ return AVERROR(EINVAL);
}
avfilter_start_frame(link, avfilter_ref_buffer(c->picref, ~0));