summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-19 19:57:08 +0100
committerwm4 <wm4@nowhere>2014-03-19 19:57:08 +0100
commit9be93d6b60bebe6b43687d481957ed78ac25f4c8 (patch)
treebd131d3415b3121d0c62c3a7b514355574c0e0ad /video/out
parent917650fefaa34b94a3784c2944c45b5d7131f229 (diff)
downloadmpv-9be93d6b60bebe6b43687d481957ed78ac25f4c8.tar.bz2
mpv-9be93d6b60bebe6b43687d481957ed78ac25f4c8.tar.xz
vdpau: remove pointer indirection for a field
There's no reason to. This is basically a cosmetic change.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gl_hwdec_vdpau.c6
-rw-r--r--video/out/vo_vdpau.c2
2 files changed, 4 insertions, 4 deletions
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;