diff options
Diffstat (limited to 'video/out/opengl/hwdec_vdpau.c')
-rw-r--r-- | video/out/opengl/hwdec_vdpau.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/video/out/opengl/hwdec_vdpau.c b/video/out/opengl/hwdec_vdpau.c index 7ce2e0630b..acdc703cad 100644 --- a/video/out/opengl/hwdec_vdpau.c +++ b/video/out/opengl/hwdec_vdpau.c @@ -46,10 +46,11 @@ struct priv { static int init(struct ra_hwdec *hw) { - Display *x11disp = ra_get_native_resource(hw->ra, "x11"); - if (!x11disp || !ra_is_gl(hw->ra)) + struct ra *ra = hw->ra_ctx->ra; + Display *x11disp = ra_get_native_resource(ra, "x11"); + if (!x11disp || !ra_is_gl(ra)) return -1; - GL *gl = ra_gl_get(hw->ra); + GL *gl = ra_gl_get(ra); if (!(gl->mpgl_caps & MPGL_CAP_VDPAU)) return -1; struct priv_owner *p = hw->priv; |