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:
wm4 2013-07-30 16:32:21 +02:00
parent 7f5303fbb6
commit a34c707f03
1 changed files with 3 additions and 0 deletions

View File

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