projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aaab11
)
graphparser: only print filter arguments if they are non-NULL
author
Anton Khirnov
<anton@khirnov.net>
Wed, 10 Apr 2013 10:44:13 +0000
(12:44 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 30 Apr 2013 09:16:57 +0000
(11:16 +0200)
libavfilter/graphparser.c
patch
|
blob
|
history
diff --git
a/libavfilter/graphparser.c
b/libavfilter/graphparser.c
index
d00da9c
..
00764b6
100644
(file)
--- 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;
}