diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-22 09:55:57 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-22 09:55:57 +0000 |
commit | 99ac59ca69039cd28701c46e7e896f2d05bb5528 (patch) | |
tree | 49573f542394f3c81a6d9f4bd5250bc0c480773c /libavfilter | |
parent | f219eee5921c36b8ee11a4e566cddebe51667afe (diff) | |
download | ffmpeg-99ac59ca69039cd28701c46e7e896f2d05bb5528.tar.gz |
Make link_filter() propagate the generated error code.
Originally committed as revision 24419 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/graphparser.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |