Commit 79fe1958 authored by Felix Paul Kühne's avatar Felix Paul Kühne

event manager: cosmetics

parent 62e91de1
......@@ -155,6 +155,8 @@ static void * EventDispatcherMainLoop(void * user_data)
/* Get the first object off the queue. */
message = [_messageQueue lastObject]; // Released in 'call'
if (!message)
break;
[_messageQueue removeLastObject];
/* Remove duplicate notifications (keep the newest one). */
......@@ -247,6 +249,7 @@ static void * EventDispatcherMainLoop(void * user_data)
message.sel = aSelector;
message.target = aTarget;
message.object = arg;
message.name = @"";
message.type = [arg isKindOfClass:[NSArray class]] ? VLCObjectMethodWithArrayArg : VLCObjectMethodWithObjectArg;
pthread_mutex_lock(&_queueLock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment