From fddcb5050b1bf9e957e4c64b28f084f812b74d9d Mon Sep 17 00:00:00 2001 From: Rinat Ibragimov Date: Sun, 19 Jun 2016 02:23:33 +0300 Subject: [PATCH] video-mixer: make dstVideoRect equal dst_surf size by default --- src/api-video-mixer.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api-video-mixer.cc b/src/api-video-mixer.cc index 157084f..0fcea76 100644 --- a/src/api-video-mixer.cc +++ b/src/api-video-mixer.cc @@ -459,7 +459,11 @@ RenderImpl(VdpVideoMixer mixer_id, VdpOutputSurface background_surface, if (destination_rect) dstRect = *destination_rect; - VdpRect dstVideoRect = srcVideoRect; + // TODO: dstVideoRect once was equal srcVideoRect by default. But there are + // possible subtleness in API documentation, which makes some people + // interpret it in another way. More importantly, origial VDPAU driver + // also does the other way. I hope this will be clarified one day. + VdpRect dstVideoRect = {0, 0, dst_surf->width, dst_surf->height}; if (destination_video_rect) dstVideoRect = *destination_video_rect;