summaryrefslogtreecommitdiffstats
path: root/video/decode/vd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-14 19:19:23 +0100
committerwm4 <wm4@nowhere>2013-01-14 19:19:23 +0100
commita3824d508e22f18dced18370e98cf75c863a5123 (patch)
tree580953fd070cf85a8885ed3227649348890dfcfe /video/decode/vd.c
parent8f5ef883c1423112ecfba85705972c880643104d (diff)
downloadmpv-a3824d508e22f18dced18370e98cf75c863a5123.tar.bz2
mpv-a3824d508e22f18dced18370e98cf75c863a5123.tar.xz
video: print filter chain in verbose mode
Somewhat useful to see where filters are auto-inserted and which formats they take.
Diffstat (limited to 'video/decode/vd.c')
-rw-r--r--video/decode/vd.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/video/decode/vd.c b/video/decode/vd.c
index e3cb70ad1b..7cdd25f55a 100644
--- a/video/decode/vd.c
+++ b/video/decode/vd.c
@@ -83,12 +83,8 @@ int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int out_fmt)
// check if libvo and codec has common outfmt (no conversion):
for (;;) {
- if (mp_msg_test(MSGT_DECVIDEO, MSGL_V)) {
- mp_msg(MSGT_DECVIDEO, MSGL_V, "Trying filter chain:");
- for (vf_instance_t *f = vf; f; f = f->next)
- mp_msg(MSGT_DECVIDEO, MSGL_V, " %s", f->info->name);
- mp_msg(MSGT_DECVIDEO, MSGL_V, "\n");
- }
+ mp_msg(MSGT_VFILTER, MSGL_V, "Trying filter chain:\n");
+ vf_print_filter_chain(MSGL_V, vf);
int flags = vf->query_format(vf, out_fmt);
mp_msg(MSGT_CPLAYER, MSGL_DBG2, "vo_debug: query(%s) returned 0x%X \n",
@@ -108,7 +104,9 @@ int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int out_fmt)
mp_tmsg(MSGT_CPLAYER, MSGL_WARN,
"The selected video_out device is incompatible with this codec.\n"\
"Try appending the scale filter to your filter list,\n"\
- "e.g. -vf spp,scale instead of -vf spp.\n");
+ "e.g. -vf filter,scale instead of -vf filter.\n");
+ mp_tmsg(MSGT_VFILTER, MSGL_WARN, "Attempted filter chain:\n");
+ vf_print_filter_chain(MSGL_WARN, vf);
sh->vf_initialized = -1;
return 0; // failed
}
@@ -198,6 +196,9 @@ int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int out_fmt)
return 0;
}
+ mp_tmsg(MSGT_VFILTER, MSGL_V, "Video filter chain:\n");
+ vf_print_filter_chain(MSGL_V, vf);
+
sh->vf_initialized = 1;
set_video_colorspace(sh);