changeset 25178:e9d23081b4ab

Ignore empty event.
author ulion
date Thu, 29 Nov 2007 23:32:08 +0000
parents a43d99a80f4a
children 6e8b40d412f0
files libvo/vo_macosx.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_macosx.m	Thu Nov 29 23:25:14 2007 +0000
+++ b/libvo/vo_macosx.m	Thu Nov 29 23:32:08 2007 +0000
@@ -875,6 +875,8 @@
 - (void) check_events
 {
 	event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate dateWithTimeIntervalSinceNow:0.0001] inMode:NSEventTrackingRunLoopMode dequeue:YES];
+	if (event == nil)
+		return;
 	[NSApp sendEvent:event];
 }