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.
This commit is contained in:
wm4 2017-02-20 08:41:23 +01:00
parent 6aa4efd1e3
commit cda9fdcfc7
1 changed files with 2 additions and 1 deletions

View File

@ -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);