Revision 99ac59ca

View differences:

libavfilter/graphparser.c
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;

Also available in: Unified diff