mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 06:30:06 +00:00
vo_vdpau: minor simplification
No change in behavior.
This commit is contained in:
parent
62b0f64c24
commit
75edecb526
@ -819,11 +819,8 @@ static void draw_image(struct vo *vo, struct mp_image *mpi)
|
|||||||
check_preemption(vo);
|
check_preemption(vo);
|
||||||
|
|
||||||
struct mp_image *vdp_mpi = mp_vdpau_upload_video_surface(vc->mpvdp, mpi);
|
struct mp_image *vdp_mpi = mp_vdpau_upload_video_surface(vc->mpvdp, mpi);
|
||||||
if (vdp_mpi) {
|
if (!vdp_mpi)
|
||||||
mp_image_copy_attributes(vdp_mpi, mpi);
|
|
||||||
} else {
|
|
||||||
MP_ERR(vo, "Could not upload image.\n");
|
MP_ERR(vo, "Could not upload image.\n");
|
||||||
}
|
|
||||||
talloc_free(mpi);
|
talloc_free(mpi);
|
||||||
|
|
||||||
talloc_free(vc->current_image);
|
talloc_free(vc->current_image);
|
||||||
|
Loading…
Reference in New Issue
Block a user