summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video.c')
-rw-r--r--video.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video.c b/video.c
index 4f5ecd8..d72c3f6 100644
--- a/video.c
+++ b/video.c
@@ -4810,6 +4810,11 @@ static void VaapiSetVideoMode(void)
int i;
for (i = 0; i < VaapiDecoderN; ++i) {
+ // reset video window, upper level needs to fix the positions
+ VaapiDecoders[i]->VideoX = 0;
+ VaapiDecoders[i]->VideoY = 0;
+ VaapiDecoders[i]->VideoWidth = VideoWindowWidth;
+ VaapiDecoders[i]->VideoHeight = VideoWindowHeight;
VaapiUpdateOutput(VaapiDecoders[i]);
}
}