[vlc-commits] macosx: prevent ugly artifacts when playing a video

Felix Paul Kühne git at videolan.org
Sun Sep 4 19:37:40 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Sep  4 18:38:31 2011 +0200| [9415464eb33082e8ff5ffd8cb8fa0795160fd0a8] | committer: Felix Paul Kühne

macosx: prevent ugly artifacts when playing a video

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9415464eb33082e8ff5ffd8cb8fa0795160fd0a8
---

 modules/gui/macosx/vout.m |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 22b5cbd..2324741 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -394,4 +394,14 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
        events */
     return NO;
 }
+
+- (void)renewGState
+{
+    NSWindow *window = [self window];
+
+	if ([window respondsToSelector:@selector(disableScreenUpdatesUntilFlush)])
+		[window disableScreenUpdatesUntilFlush];
+
+    [super renewGState];
+}
 @end



More information about the vlc-commits mailing list