Revision 27a669ab libavfilter/graphparser.c

View differences:

libavfilter/graphparser.c
50 50
    char tmp[20];
51 51

  
52 52
    snprintf(tmp, 20, "%d", index);
53
    if(!(filterdef = avfilter_get_by_name(name)) ||
54
       !(filt = avfilter_open(filterdef, tmp))) {
53

  
54
    if(!(filterdef = avfilter_get_by_name(name))) {
55
        av_log(&log_ctx, AV_LOG_ERROR,
56
               "no such filter: '%s'\n", name);
57
        return -1;
58
    }
59

  
60
    if(!(filt = avfilter_open(filterdef, tmp))) {
55 61
        av_log(&log_ctx, AV_LOG_ERROR,
56 62
               "error creating filter '%s'\n", name);
57 63
        return -1;
......
62 68

  
63 69
    if(avfilter_init_filter(filt, args, NULL)) {
64 70
        av_log(&log_ctx, AV_LOG_ERROR,
65
               "error initializing filter '%s'\n", name);
71
               "error initializing filter '%s' with args '%s'\n", name, args);
66 72
        return -1;
67 73
    }
68 74

  

Also available in: Unified diff