summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-20 08:41:23 +0100
committerwm4 <wm4@nowhere>2017-02-20 08:41:23 +0100
commitcda9fdcfc7f405fc969368bef8389b264d98ace9 (patch)
tree166f0016f72e3a8fa58536bc875b7200266c431c /video/decode/vd_lavc.c
parent6aa4efd1e3205c9b1385865df1b5b09646d2160c (diff)
downloadmpv-cda9fdcfc7f405fc969368bef8389b264d98ace9.tar.bz2
mpv-cda9fdcfc7f405fc969368bef8389b264d98ace9.tar.xz
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.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c3
1 files changed, 2 insertions, 1 deletions
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);