aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-07-30 16:32:21 +0200
committerGravatar wm4 <wm4@nowhere>2013-07-30 16:32:21 +0200
commita34c707f038bfc655ae161e17c6cff63c1527ba0 (patch)
tree13f9cbd9279b87b4cfb12ec468476426eb1db571 /video/decode/vd_lavc.c
parent7f5303fbb67773b8f6de87949bea989e4e772239 (diff)
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.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c3
1 files changed, 3 insertions, 0 deletions
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);