diff options
author | wm4 <wm4@nowhere> | 2016-07-06 14:13:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-06 14:13:03 +0200 |
commit | 5d2f1da7c53919a41557c65f2c3f7d6ded8698f4 (patch) | |
tree | 0c603a22135dc8ae3ea4119df5f24c6a8c62b2a9 | |
parent | 771a8bf5c67417b7aad07fac0913c37b4633a205 (diff) |
vf, af: print filter labels in verbose mode
-rw-r--r-- | audio/filter/af.c | 2 | ||||
-rw-r--r-- | video/filter/vf.c | 2 |
2 files changed, 4 insertions, 0 deletions
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]"); |