From 9be93d6b60bebe6b43687d481957ed78ac25f4c8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 19 Mar 2014 19:57:08 +0100 Subject: vdpau: remove pointer indirection for a field There's no reason to. This is basically a cosmetic change. --- video/out/gl_hwdec_vdpau.c | 6 +++--- video/out/vo_vdpau.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'video/out') diff --git a/video/out/gl_hwdec_vdpau.c b/video/out/gl_hwdec_vdpau.c index 07e406d9ba..d5d3b30b52 100644 --- a/video/out/gl_hwdec_vdpau.c +++ b/video/out/gl_hwdec_vdpau.c @@ -75,7 +75,7 @@ static void destroy_objects(struct gl_hwdec *hw) { struct priv *p = hw->priv; GL *gl = hw->mpgl->gl; - struct vdp_functions *vdp = p->ctx->vdp; + struct vdp_functions *vdp = &p->ctx->vdp; VdpStatus vdp_st; if (p->vdpgl_surface) @@ -142,7 +142,7 @@ static int reinit(struct gl_hwdec *hw, const struct mp_image_params *params) { struct priv *p = hw->priv; GL *gl = hw->mpgl->gl; - struct vdp_functions *vdp = p->ctx->vdp; + struct vdp_functions *vdp = &p->ctx->vdp; VdpStatus vdp_st; destroy_objects(hw); @@ -215,7 +215,7 @@ static int map_image(struct gl_hwdec *hw, struct mp_image *hw_image, { struct priv *p = hw->priv; GL *gl = hw->mpgl->gl; - struct vdp_functions *vdp = p->ctx->vdp; + struct vdp_functions *vdp = &p->ctx->vdp; VdpStatus vdp_st; assert(hw_image && hw_image->imgfmt == IMGFMT_VDPAU); diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 9822063892..abb99d6ead 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1356,7 +1356,7 @@ static int preinit(struct vo *vo) vc->preemption_counter = vc->mpvdp->preemption_counter; vc->vdp_device = vc->mpvdp->vdp_device; - vc->vdp = vc->mpvdp->vdp; + vc->vdp = &vc->mpvdp->vdp; vc->colorspace = (struct mp_csp_details) MP_CSP_DETAILS_DEFAULTS; vc->video_eq.capabilities = MP_CSP_EQ_CAPS_COLORMATRIX; -- cgit v1.2.3