From cda9fdcfc7f405fc969368bef8389b264d98ace9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Feb 2017 08:41:23 +0100 Subject: vd_lavc: increase verbosity if requested hwaccel is not compiled Well, not like we can detect whether it's missing from libavcodec, but it's still slightly better. --- video/decode/vd_lavc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index f89ec7e6cd..8faf2dc71d 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -387,7 +387,8 @@ static struct vd_lavc_hwdec *probe_hwdec(struct dec_video *vd, bool autoprobe, MP_VERBOSE(vd, "Probing '%s'...\n", m_opt_choice_str(mp_hwdec_names, api)); struct vd_lavc_hwdec *hwdec = find_hwcodec(api); if (!hwdec) { - MP_VERBOSE(vd, "Requested hardware decoder not compiled.\n"); + int level = autoprobe ? MSGL_V : MSGL_WARN; + MP_MSG(vd, level, "Requested hardware decoder not compiled.\n"); return NULL; } int r = hwdec_probe(vd, hwdec, codec, autoprobe); -- cgit v1.2.3