Commit 0ec1863a authored by vitor's avatar vitor

Let request_frame() indicate success or failure

Commited in SoC by Bobby Bingham on 2007-08-11 17:42:36


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12001 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 49967eb7
...@@ -144,14 +144,15 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms) ...@@ -144,14 +144,15 @@ AVFilterPicRef *avfilter_get_video_buffer(AVFilterLink *link, int perms)
return ret; return ret;
} }
void avfilter_request_frame(AVFilterLink *link) int avfilter_request_frame(AVFilterLink *link)
{ {
const AVFilterPad *pad = &link->src->output_pads[link->srcpad]; const AVFilterPad *pad = &link->src->output_pads[link->srcpad];
if(pad->request_frame) if(pad->request_frame)
pad->request_frame(link); return pad->request_frame(link);
else if(link->src->inputs[0]) 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 /* XXX: should we do the duplicating of the picture ref here, instead of
......
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