[FFmpeg-cvslog] r25433 - trunk/libavfilter/avfilter.c
stefano
subversion
Sun Oct 10 20:54:40 CEST 2010
Author: stefano
Date: Sun Oct 10 20:54:39 2010
New Revision: 25433
Log:
Make avfilter_config_links() propagate the error code coming from the
callee functions.
Modified:
trunk/libavfilter/avfilter.c
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c Sun Oct 10 04:20:02 2010 (r25432)
+++ trunk/libavfilter/avfilter.c Sun Oct 10 20:54:39 2010 (r25433)
@@ -156,6 +156,7 @@ int avfilter_config_links(AVFilterContex
{
int (*config_link)(AVFilterLink *);
unsigned i;
+ int ret;
for (i = 0; i < filter->input_count; i ++) {
AVFilterLink *link = filter->inputs[i];
@@ -171,17 +172,17 @@ int avfilter_config_links(AVFilterContex
case AVLINK_UNINIT:
link->init_state = AVLINK_STARTINIT;
- if (avfilter_config_links(link->src))
- return -1;
+ if ((ret = avfilter_config_links(link->src)) < 0)
+ return ret;
if (!(config_link = link->srcpad->config_props))
config_link = avfilter_default_config_output_link;
- if (config_link(link))
- return -1;
+ if ((ret = config_link(link)) < 0)
+ return ret;
if ((config_link = link->dstpad->config_props))
- if (config_link(link))
- return -1;
+ if ((ret = config_link(link)) < 0)
+ return ret;
link->init_state = AVLINK_INIT;
}
More information about the ffmpeg-cvslog
mailing list