summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-01 19:22:35 +0200
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-07 10:42:30 +0900
commit527550dfe63c32ab168ac3d955bf73ddc0ec8096 (patch)
tree8b268075dfa684c23f4ba233fadf06d34dfa79c3
parent275694a0021e57c40a921bc1058f4e8b04a52575 (diff)
downloadmpv-527550dfe63c32ab168ac3d955bf73ddc0ec8096.tar.bz2
mpv-527550dfe63c32ab168ac3d955bf73ddc0ec8096.tar.xz
vo_rpi: update renderer size on display size changes too
(Not sure why it worked without this when I tested the previous changes.) Untested, but should be fine. This is equivalent what is done on e.g. panscan changes. (cherry picked from commit 94a3a76ee31bdc00255dc231e99be9f9ad6f38fa)
-rw-r--r--video/out/vo_rpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c
index 6e0e92e7fb..f144deb4b7 100644
--- a/video/out/vo_rpi.c
+++ b/video/out/vo_rpi.c
@@ -533,6 +533,8 @@ static int control(struct vo *vo, uint32_t request, void *data)
if (atomic_load(&p->update_display)) {
atomic_store(&p->update_display, false);
update_display_size(vo);
+ if (p->renderer_enabled)
+ resize(vo);
}
return VO_TRUE;
}