Originally committed as revision 24419 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -34,11 +34,12 @@ static int link_filter(AVFilterContext *src, int srcpad, · 33 unmodified lines | ||
| 34 | 34 | AVFilterContext *dst, int dstpad, |
| 35 | 35 | AVClass *log_ctx) |
| 36 | 36 | { |
| 37 | − if (avfilter_link(src, srcpad, dst, dstpad)) { | |
| 37 | + int ret; | |
| 38 | + if ((ret = avfilter_link(src, srcpad, dst, dstpad))) { | |
| 38 | 39 | av_log(log_ctx, AV_LOG_ERROR, |
| 39 | 40 | "cannot create the link %s:%d -> %s:%d\n", |
| 40 | 41 | src->filter->name, srcpad, dst->filter->name, dstpad); |
| 41 | − return -1; | |
| 42 | + return ret; | |
| 42 | 43 | } |
| 43 | 44 | |
| 44 | 45 | return 0; |