diff options
author | der richter <der.richter@gmx.de> | 2020-08-15 14:14:23 +0200 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-08-22 14:22:49 +0200 |
commit | 0cea7b9ffbcf23c774a881f5d1d14f2fbbd86d5b (patch) | |
tree | c0b8f6f3e8bca90dda5bbd3609d621568cb23caf /video | |
parent | 6c83e91e11556697e836895e26254b4d9bf223df (diff) | |
download | mpv-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
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 2 |
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) } } } |