# HG changeset patch # User ulion # Date 1196379128 0 # Node ID e9d23081b4ab651cf703e11fbb031025b3e56822 # Parent a43d99a80f4ab610274ba6e93cf2ec85ee4b368b Ignore empty event. diff -r a43d99a80f4a -r e9d23081b4ab libvo/vo_macosx.m --- 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]; }