summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2020-08-15 14:14:23 +0200
committerder richter <der.richter@gmx.de>2020-08-22 14:22:49 +0200
commit0cea7b9ffbcf23c774a881f5d1d14f2fbbd86d5b (patch)
treec0b8f6f3e8bca90dda5bbd3609d621568cb23caf
parent6c83e91e11556697e836895e26254b4d9bf223df (diff)
downloadmpv-0cea7b9ffbcf23c774a881f5d1d14f2fbbd86d5b.tar.bz2
mpv-0cea7b9ffbcf23c774a881f5d1d14f2fbbd86d5b.tar.xz
cocoa-cb: force layer update on resize
this fixes some race condition where the content of the layer wasn't updated because the size didn't changed and the layer was already marked as updated. just force an update on reconfig. Fixes #7989
-rw-r--r--video/out/cocoa_cb_common.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift
index fb868e5c1f..6cea9a60c3 100644
--- a/video/out/cocoa_cb_common.swift
+++ b/video/out/cocoa_cb_common.swift
@@ -67,7 +67,7 @@ class CocoaCB: Common {
} else {
DispatchQueue.main.async {
self.updateWindowSize(vo)
- self.layer?.update()
+ self.layer?.update(force: true)
}
}
}