mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
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.
This commit is contained in:
parent
fda45f4537
commit
5c313f1f59
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user