[FFmpeg-cvslog] r12001 - trunk/libavfilter/avfilter.c

vitor subversion
Fri Feb 15 22:37:31 CET 2008


Author: vitor
Date: Fri Feb 15 22:37:31 2008
New Revision: 12001

Log:
Let request_frame() indicate success or failure

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


Modified:
   trunk/libavfilter/avfilter.c

Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c	(original)
+++ trunk/libavfilter/avfilter.c	Fri Feb 15 22:37:31 2008
@@ -144,14 +144,15 @@ AVFilterPicRef *avfilter_get_video_buffe
     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




More information about the ffmpeg-cvslog mailing list