From b2324f456070d8906ce6cd9efe8da302d54f87a3 Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Mon, 8 Jun 2020 10:29:01 -0400 Subject: [PATCH] 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 Reviewed-by: Leo Liu Part-of: --- 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; -- 2.30.2