[FFmpeg-cvslog] r25229 - trunk/libavfilter/avfilter.c
stefano
subversion
Mon Sep 27 19:28:54 CEST 2010
Author: stefano
Date: Mon Sep 27 19:28:53 2010
New Revision: 25229
Log:
Make avfilter_insert_filter() propagate an error code in case the
called avfilter_link() fails.
Modified:
trunk/libavfilter/avfilter.c
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c Mon Sep 27 19:02:53 2010 (r25228)
+++ trunk/libavfilter/avfilter.c Mon Sep 27 19:28:53 2010 (r25229)
@@ -124,6 +124,7 @@ int avfilter_link(AVFilterContext *src,
int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
unsigned in, unsigned out)
{
+ int ret;
unsigned dstpad_idx = link->dstpad - link->dst->input_pads;
av_log(link->dst, AV_LOG_INFO, "auto-inserting filter '%s' "
@@ -131,10 +132,10 @@ int avfilter_insert_filter(AVFilterLink
filt->name, link->src->name, link->dst->name);
link->dst->inputs[dstpad_idx] = NULL;
- if (avfilter_link(filt, out, link->dst, dstpad_idx)) {
+ if ((ret = avfilter_link(filt, out, link->dst, dstpad_idx)) < 0) {
/* failed to link output filter to new filter */
link->dst->inputs[dstpad_idx] = link;
- return -1;
+ return ret;
}
/* re-hookup the link to the new destination filter we inserted */
More information about the ffmpeg-cvslog
mailing list