mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
vdpau_old: enable OpenGL interop
OpenGL interop was essentially disabled, because the decoder didn't request vdpau device creation from vo_opengl.
This commit is contained in:
parent
b14a7da5d4
commit
16233bc546
@ -242,6 +242,7 @@ static int init(struct lavc_ctx *ctx)
|
||||
static int probe(struct vd_lavc_hwdec *hwdec, struct mp_hwdec_info *info,
|
||||
const char *decoder)
|
||||
{
|
||||
hwdec_request_api(info, "vdpau");
|
||||
if (!info || !info->vdpau_ctx)
|
||||
return HWDEC_ERR_NO_CTX;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user