mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01:00
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:
parent
6aa4efd1e3
commit
cda9fdcfc7
@ -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));
|
MP_VERBOSE(vd, "Probing '%s'...\n", m_opt_choice_str(mp_hwdec_names, api));
|
||||||
struct vd_lavc_hwdec *hwdec = find_hwcodec(api);
|
struct vd_lavc_hwdec *hwdec = find_hwcodec(api);
|
||||||
if (!hwdec) {
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
int r = hwdec_probe(vd, hwdec, codec, autoprobe);
|
int r = hwdec_probe(vd, hwdec, codec, autoprobe);
|
||||||
|
Loading…
Reference in New Issue
Block a user