mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 15:11:58 +00:00
vd_lavc: print warning if hardware decoding API is not available
At least currently, this case pretty much happens only in the case vdpau is requested, but not compiled in.
This commit is contained in:
parent
7f5303fbb6
commit
a34c707f03
@ -199,6 +199,9 @@ static int init(sh_video_t *sh, const char *decoder)
|
||||
ctx->software_fallback_decoder = talloc_strdup(ctx, decoder);
|
||||
use_hwdec = hwdec;
|
||||
}
|
||||
} else if (!hwdec && sh->opts->hwdec_api) {
|
||||
mp_tmsg(MSGT_DECVIDEO, MSGL_WARN, "Selected hardware decoding API not "
|
||||
"available, using software decoding.\n");
|
||||
}
|
||||
|
||||
init_avctx(sh, decoder, use_hwdec);
|
||||
|
Loading…
Reference in New Issue
Block a user