From 99ac59ca69039cd28701c46e7e896f2d05bb5528 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 22 Jul 2010 09:55:57 +0000 Subject: Make link_filter() propagate the generated error code. Originally committed as revision 24419 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/graphparser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavfilter') diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 21ed1f27eb..7cf320f76a 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -34,11 +34,12 @@ static int link_filter(AVFilterContext *src, int srcpad, AVFilterContext *dst, int dstpad, AVClass *log_ctx) { - if (avfilter_link(src, srcpad, dst, dstpad)) { + int ret; + if ((ret = avfilter_link(src, srcpad, dst, dstpad))) { av_log(log_ctx, AV_LOG_ERROR, "cannot create the link %s:%d -> %s:%d\n", src->filter->name, srcpad, dst->filter->name, dstpad); - return -1; + return ret; } return 0; -- cgit v1.2.3