lavfi: use the correct filter context for logging an error.
authorAnton Khirnov <anton@khirnov.net>
Sun, 23 Feb 2014 14:40:06 +0000 (15:40 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 5 Mar 2014 20:52:02 +0000 (21:52 +0100)
libavfilter/avfilter.c

index f02358f..c9617dc 100644 (file)
@@ -204,7 +204,7 @@ int avfilter_config_links(AVFilterContext *filter)
 
             if ((config_link = link->dstpad->config_props))
                 if ((ret = config_link(link)) < 0) {
 
             if ((config_link = link->dstpad->config_props))
                 if ((ret = config_link(link)) < 0) {
-                    av_log(link->src, AV_LOG_ERROR,
+                    av_log(link->dst, AV_LOG_ERROR,
                            "Failed to configure input pad on %s\n",
                            link->dst->name);
                     return ret;
                            "Failed to configure input pad on %s\n",
                            link->dst->name);
                     return ret;