mirror of https://github.com/mpv-player/mpv
vf, af: print filter labels in verbose mode
This commit is contained in:
parent
771a8bf5c6
commit
5d2f1da7c5
|
@ -275,6 +275,8 @@ static void af_print_filter_chain(struct af_stream *s, struct af_instance *at,
|
||||||
while (af) {
|
while (af) {
|
||||||
char b[128] = {0};
|
char b[128] = {0};
|
||||||
mp_snprintf_cat(b, sizeof(b), " [%s] ", af->info->name);
|
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)
|
if (af->data)
|
||||||
mp_snprintf_cat(b, sizeof(b), "%s", mp_audio_config_to_str(af->data));
|
mp_snprintf_cat(b, sizeof(b), "%s", mp_audio_config_to_str(af->data));
|
||||||
if (af == at)
|
if (af == at)
|
||||||
|
|
|
@ -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) {
|
for (vf_instance_t *f = c->first; f; f = f->next) {
|
||||||
char b[128] = {0};
|
char b[128] = {0};
|
||||||
mp_snprintf_cat(b, sizeof(b), " [%s] ", f->info->name);
|
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));
|
mp_snprintf_cat(b, sizeof(b), "%s", mp_image_params_to_str(&f->fmt_out));
|
||||||
if (f->autoinserted)
|
if (f->autoinserted)
|
||||||
mp_snprintf_cat(b, sizeof(b), " [a]");
|
mp_snprintf_cat(b, sizeof(b), " [a]");
|
||||||
|
|
Loading…
Reference in New Issue