diff options
author | wm4 <wm4@nowhere> | 2015-02-07 21:14:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-07 21:14:12 +0100 |
commit | 75edecb526bee29a9adee5946ef5baf26b27e8b0 (patch) | |
tree | 66c9201e854d87cb8b50c577d20d1392c48195a6 /video | |
parent | 62b0f64c249a07ee8a6391bac4b183229f664dfd (diff) |
vo_vdpau: minor simplification
No change in behavior.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_vdpau.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 8a9802ca12..4c08786b0b 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -819,11 +819,8 @@ static void draw_image(struct vo *vo, struct mp_image *mpi) check_preemption(vo); struct mp_image *vdp_mpi = mp_vdpau_upload_video_surface(vc->mpvdp, mpi); - if (vdp_mpi) { - mp_image_copy_attributes(vdp_mpi, mpi); - } else { + if (!vdp_mpi) MP_ERR(vo, "Could not upload image.\n"); - } talloc_free(mpi); talloc_free(vc->current_image); |