Mesa (master): frontends/vdpau: Default destination rect to source rect
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 9 18:27:22 UTC 2020
Module: Mesa
Branch: master
Commit: b2324f456070d8906ce6cd9efe8da302d54f87a3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2324f456070d8906ce6cd9efe8da302d54f87a3
Author: Thong Thai <thong.thai at 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.thai at amd.com>
Reviewed-by: Leo Liu <leo.liu at 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;
More information about the mesa-commit
mailing list