aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-02-15 21:37:31 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-02-15 21:37:31 +0000
commit3306f8bd15301d84c11f85f0fa3b1e627663f1ac (patch)
treecee1165a477543c4afcb772666a7cb3221b0c03e /libavfilter/avfilter.c
parente2fcb3cb9ab44e81a931a80d456dd7ebb46a1277 (diff)
downloadffmpeg-3306f8bd15301d84c11f85f0fa3b1e627663f1ac.tar.gz
Let request_frame() indicate success or failure
Commited in SoC by Bobby Bingham on 2007-08-11 17:42:36 Originally committed as revision 12001 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index b004d118f0..2793ac9f98 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -144,14 +144,15 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms)
return ret;
}
-void avfilter_request_frame(AVFilterLink *link)
+int avfilter_request_frame(AVFilterLink *link)
{
const AVFilterPad *pad = &link->src->output_pads[link->srcpad];
if(pad->request_frame)
- pad->request_frame(link);
+ return pad->request_frame(link);
else if(link->src->inputs[0])
- avfilter_request_frame(link->src->inputs[0]);
+ return avfilter_request_frame(link->src->inputs[0]);
+ else return -1;
}
/* XXX: should we do the duplicating of the picture ref here, instead of