Module: Mesa Branch: master Commit: b2324f456070d8906ce6cd9efe8da302d54f87a3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2324f456070d8906ce6cd9efe8da302d54f87a3
Author: Thong Thai <thong.t...@amd.com> Date: Mon Jun 8 10:29:01 2020 -0400 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.t...@amd.com> Reviewed-by: Leo Liu <leo....@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5386> --- src/gallium/frontends/vdpau/mixer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/frontends/vdpau/mixer.c b/src/gallium/frontends/vdpau/mixer.c index 2e2bd20ef39..98da01d3e4c 100644 --- a/src/gallium/frontends/vdpau/mixer.c +++ b/src/gallium/frontends/vdpau/mixer.c @@ -331,6 +331,9 @@ VdpStatus vlVdpVideoMixerRender(VdpVideoMixer mixer, } } + if (!destination_video_rect) + destination_video_rect = video_source_rect; + prect = RectToPipe(video_source_rect, &rect); if (!prect) { rect.x0 = 0; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit