summaryrefslogtreecommitdiff
path: root/libavfilter/af_channelsplit.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-08-09 00:49:27 +0200
committerClément Bœsch <ubitux@gmail.com>2012-08-09 08:11:00 +0200
commitcc650cf029d8a2aa3c245b014363db673fd2d722 (patch)
tree19cd52f75fb09d8c11b52e5b83bf66f73acdbfd0 /libavfilter/af_channelsplit.c
parent5d8e54fe1ded58cd2d76c112041f5202ce762aef (diff)
Remove "Error parsing options string [...]" messages.
This reduces from 3 to 2 messages for the same syntax error in ffprobe, and from 4 to 3 in filters.
Diffstat (limited to 'libavfilter/af_channelsplit.c')
-rw-r--r--libavfilter/af_channelsplit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c
index 3db08045c2..d15c781bf5 100644
--- a/libavfilter/af_channelsplit.c
+++ b/libavfilter/af_channelsplit.c
@@ -55,10 +55,8 @@ static int init(AVFilterContext *ctx, const char *arg)
s->class = &channelsplit_class;
av_opt_set_defaults(s);
- if ((ret = av_set_options_string(s, arg, "=", ":")) < 0) {
- av_log(ctx, AV_LOG_ERROR, "Error parsing options string '%s'.\n", arg);
+ if ((ret = av_set_options_string(s, arg, "=", ":")) < 0)
return ret;
- }
if (!(s->channel_layout = av_get_channel_layout(s->channel_layout_str))) {
av_log(ctx, AV_LOG_ERROR, "Error parsing channel layout '%s'.\n",
s->channel_layout_str);