summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2019-08-29 21:52:50 +0200
committersfan5 <sfan5@live.de>2019-09-14 13:50:10 +0200
commit5c313f1f5965eb8f00c3d242d9e27e9612dc949b (patch)
tree4588cdc9ecfc66cfa3e99e5b73446744b41c697d /video
parentfda45f4537b82ee4566e475367c78935da8cdc90 (diff)
downloadmpv-5c313f1f5965eb8f00c3d242d9e27e9612dc949b.tar.bz2
mpv-5c313f1f5965eb8f00c3d242d9e27e9612dc949b.tar.xz
vo: add warning message to vo_vaapi and vo_vdpau
These are a common source of bug reports, due to misconceptions that they are required to make use of hardware decoding.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_vaapi.c5
-rw-r--r--video/out/vo_vdpau.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c
index c8ffffcb1e..c94fbf56f7 100644
--- a/video/out/vo_vaapi.c
+++ b/video/out/vo_vaapi.c
@@ -866,6 +866,11 @@ static int preinit(struct vo *vo)
vo->hwdec_devs = hwdec_devices_create();
hwdec_devices_add(vo->hwdec_devs, &p->mpvaapi->hwctx);
+ MP_WARN(vo, "Warning: this compatibility VO is low quality and may "
+ "have issues with OSD, scaling, screenshots and more.\n"
+ "vo=gpu is the preferred choice in any case and "
+ "includes VA-API support via hwdec=vaapi or vaapi-copy.\n");
+
return 0;
fail:
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index 9871355330..6bbd4f9e92 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -1046,6 +1046,11 @@ static int preinit(struct vo *vo)
vc->vdp->bitmap_surface_query_capabilities(vc->vdp_device, VDP_RGBA_FORMAT_A8,
&vc->supports_a8, &(uint32_t){0}, &(uint32_t){0});
+ MP_WARN(vo, "Warning: this compatibility VO is low quality and may "
+ "have issues with OSD, scaling, screenshots and more.\n"
+ "vo=gpu is the preferred choice in any case and "
+ "includes VDPAU support via hwdec=vdpau or vdpau-copy.\n");
+
return 0;
}