frontends/vdpau: Default destination rect to source rect
authorThong Thai <thong.thai@amd.com>
Mon, 8 Jun 2020 14:29:01 +0000 (10:29 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 9 Jun 2020 18:02:09 +0000 (18:02 +0000)
commitb2324f456070d8906ce6cd9efe8da302d54f87a3
tree036f198afca26b33401684b21642a6ffd0ae2687
parent0795241dde1507e0c6a3f9ef07c281ad4f2acf7b
frontends/vdpau: Default destination rect to source rect

mpv is passing in a NULL destination_video_rect, which results in a
black screen when playing videos using VDPAU in some cases.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5386>
src/gallium/frontends/vdpau/mixer.c