From 5d2f1da7c53919a41557c65f2c3f7d6ded8698f4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 6 Jul 2016 14:13:03 +0200 Subject: vf, af: print filter labels in verbose mode --- audio/filter/af.c | 2 ++ video/filter/vf.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/audio/filter/af.c b/audio/filter/af.c index 084589873f..3019251140 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -275,6 +275,8 @@ static void af_print_filter_chain(struct af_stream *s, struct af_instance *at, while (af) { char b[128] = {0}; mp_snprintf_cat(b, sizeof(b), " [%s] ", af->info->name); + if (af->label) + mp_snprintf_cat(b, sizeof(b), "\"%s\" ", af->label); if (af->data) mp_snprintf_cat(b, sizeof(b), "%s", mp_audio_config_to_str(af->data)); if (af == at) diff --git a/video/filter/vf.c b/video/filter/vf.c index 17416831f3..274ca945a2 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -227,6 +227,8 @@ void vf_print_filter_chain(struct vf_chain *c, int msglevel, for (vf_instance_t *f = c->first; f; f = f->next) { char b[128] = {0}; mp_snprintf_cat(b, sizeof(b), " [%s] ", f->info->name); + if (f->label) + mp_snprintf_cat(b, sizeof(b), "\"%s\" ", f->label); mp_snprintf_cat(b, sizeof(b), "%s", mp_image_params_to_str(&f->fmt_out)); if (f->autoinserted) mp_snprintf_cat(b, sizeof(b), " [a]"); -- cgit v1.2.3