diff options
author | wm4 <wm4@nowhere> | 2014-03-19 19:57:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-19 19:57:08 +0100 |
commit | 9be93d6b60bebe6b43687d481957ed78ac25f4c8 (patch) | |
tree | bd131d3415b3121d0c62c3a7b514355574c0e0ad /video/vdpau.c | |
parent | 917650fefaa34b94a3784c2944c45b5d7131f229 (diff) | |
download | mpv-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/vdpau.c')
-rw-r--r-- | video/vdpau.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/video/vdpau.c b/video/vdpau.c index cd6af07cb9..a53986c36e 100644 --- a/video/vdpau.c +++ b/video/vdpau.c @@ -86,7 +86,7 @@ static int win_x11_init_vdpau_procs(struct mp_vdpau_ctx *ctx) } } - *ctx->vdp = vdp; + ctx->vdp = vdp; ctx->get_proc_address = get_proc_address; vdp_st = vdp.preemption_callback_register(ctx->vdp_device, @@ -150,7 +150,7 @@ static struct mp_image *create_ref(struct surface_entry *e) struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, VdpChromaType chroma, int w, int h) { - struct vdp_functions *vdp = ctx->vdp; + struct vdp_functions *vdp = &ctx->vdp; VdpStatus vdp_st; // Destroy all unused surfaces that don't have matching parameters @@ -205,14 +205,13 @@ struct mp_vdpau_ctx *mp_vdpau_create_device_x11(struct mp_log *log, *ctx = (struct mp_vdpau_ctx) { .log = log, .x11 = x11, - .vdp = talloc_zero(ctx, struct vdp_functions), }; mark_vdpau_objects_uninitialized(ctx); if (win_x11_init_vdpau_procs(ctx) < 0) { - if (ctx->vdp->device_destroy) - ctx->vdp->device_destroy(ctx->vdp_device); + if (ctx->vdp.device_destroy) + ctx->vdp.device_destroy(ctx->vdp_device); talloc_free(ctx); return NULL; } @@ -221,7 +220,7 @@ struct mp_vdpau_ctx *mp_vdpau_create_device_x11(struct mp_log *log, void mp_vdpau_destroy(struct mp_vdpau_ctx *ctx) { - struct vdp_functions *vdp = ctx->vdp; + struct vdp_functions *vdp = &ctx->vdp; VdpStatus vdp_st; for (int i = 0; i < MAX_VIDEO_SURFACES; i++) { |