From a34c707f038bfc655ae161e17c6cff63c1527ba0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 30 Jul 2013 16:32:21 +0200 Subject: 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. --- video/decode/vd_lavc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 2fef7c8007..90fd29f48a 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -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); -- cgit v1.2.3