Commit 99ac59ca authored by Stefano Sabatini's avatar Stefano Sabatini

Make link_filter() propagate the generated error code.

Originally committed as revision 24419 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f219eee5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment