[vlc-commits] vout_macosx: fix runtime exception when setting the colorspace
Felix Paul Kühne
git at videolan.org
Wed Jun 8 18:38:31 CEST 2016
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jun 8 18:33:28 2016 +0200| [56f9da19ab7cf649dd18fb34142b90adc4b72aaa] | committer: Felix Paul Kühne
vout_macosx: fix runtime exception when setting the colorspace
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56f9da19ab7cf649dd18fb34142b90adc4b72aaa
---
modules/video_output/macosx.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 3e09530..4458b46 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -839,7 +839,9 @@ static void OpenglSwap (vlc_gl_t *gl)
[super viewWillMoveToWindow:newWindow];
if (newWindow != nil) {
- [newWindow setColorSpace:vd->sys->nsColorSpace];
+ @synchronized(newWindow) {
+ [newWindow setColorSpace:vd->sys->nsColorSpace];
+ }
}
}
More information about the vlc-commits
mailing list