[FFmpeg-cvslog] graphparser: only print filter arguments if they are non-NULL

Anton Khirnov git at videolan.org
Wed May 1 10:23:36 CEST 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Apr 10 12:44:13 2013 +0200| [c22263d3e813d442df8fa5f5ba8993573fe775d8] | committer: Anton Khirnov

graphparser: only print filter arguments if they are non-NULL

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c22263d3e813d442df8fa5f5ba8993573fe775d8
---

 libavfilter/graphparser.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index d00da9c..00764b6 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -126,7 +126,10 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
     ret = avfilter_init_str(*filt_ctx, args);
     if (ret < 0) {
         av_log(log_ctx, AV_LOG_ERROR,
-               "Error initializing filter '%s' with args '%s'\n", filt_name, args);
+               "Error initializing filter '%s'", filt_name);
+        if (args)
+            av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
+        av_log(log_ctx, AV_LOG_ERROR, "\n");
         return ret;
     }
 



More information about the ffmpeg-cvslog mailing list