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:
wm4 2013-11-19 22:15:28 +01:00
parent b14a7da5d4
commit 16233bc546
1 changed files with 1 additions and 0 deletions

View File

@ -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;