Commit f552e37a authored by Felix Paul Kühne's avatar Felix Paul Kühne

Revert 7058e748 since Garbage Collection is dead

parent 5ab9b4ba
......@@ -158,7 +158,7 @@ static void * EventDispatcherMainLoop(void * user_data)
withObject:dataMessage
waitUntilDone: YES];
[pool drain];
[pool release];
}
return nil;
}
......@@ -233,7 +233,7 @@ static void * EventDispatcherMainLoop(void * user_data)
pthread_mutex_unlock([self queueLock]);
}
[pool drain];
[pool release];
}
- (void)callOnMainThreadObject:(id)aTarget withMethod:(SEL)aSelector withArgumentAsObject:(id)arg
......@@ -252,7 +252,7 @@ static void * EventDispatcherMainLoop(void * user_data)
pthread_cond_signal([self signalData]);
pthread_mutex_unlock([self queueLock]);
[pool drain];
[pool release];
}
- (void)cancelCallToObject:(id)target
......
......@@ -122,7 +122,7 @@ static void HandleMediaMetaChanged(const libvlc_event_t * event, void * self)
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(metaChanged:)
withArgumentAsObject:[VLCMedia metaTypeToString:event->u.media_meta_changed.meta_type]];
[pool drain];
[pool release];
}
static void HandleMediaDurationChanged(const libvlc_event_t * event, void * self)
......@@ -133,7 +133,7 @@ static void HandleMediaDurationChanged(const libvlc_event_t * event, void * self
withMethod:@selector(setLength:)
withArgumentAsObject:[VLCTime timeWithNumber:
@(event->u.media_duration_changed.new_duration)]];
[pool drain];
[pool release];
}
static void HandleMediaStateChanged(const libvlc_event_t * event, void * self)
......@@ -143,7 +143,7 @@ static void HandleMediaStateChanged(const libvlc_event_t * event, void * self)
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(setStateAsNumber:)
withArgumentAsObject:@(LibVLCStateToMediaState(event->u.media_state_changed.new_state))];
[pool drain];
[pool release];
}
static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
......@@ -152,7 +152,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(subItemAdded)
withArgumentAsObject:nil];
[pool drain];
[pool release];
}
static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
......
......@@ -54,7 +54,7 @@ static void HandleMediaDiscovererStarted(const libvlc_event_t * event, void * us
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(mediaDiscovererStarted)
withArgumentAsObject:nil];
[pool drain];
[pool release];
}
static void HandleMediaDiscovererEnded( const libvlc_event_t * event, void * user_data)
......@@ -64,7 +64,7 @@ static void HandleMediaDiscovererEnded( const libvlc_event_t * event, void * use
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(mediaDiscovererEnded)
withArgumentAsObject:nil];
[pool drain];
[pool release];
}
......
......@@ -58,7 +58,7 @@ static void HandleMediaListItemAdded(const libvlc_event_t * event, void * user_d
withMethod:@selector(mediaListItemAdded:)
withArgumentAsObject:@[@{@"media": [VLCMedia mediaWithLibVLCMediaDescriptor:event->u.media_list_item_added.item],
@"index": @(event->u.media_list_item_added.index)}]];
[pool drain];
[pool release];
}
static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * user_data)
......@@ -68,7 +68,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(mediaListItemRemoved:)
withArgumentAsObject:@(event->u.media_list_item_deleted.index)];
[pool drain];
[pool release];
}
@implementation VLCMediaList
......
......@@ -83,7 +83,7 @@ static void HandleMediaTimeChanged(const libvlc_event_t * event, void * self)
[[VLCEventManager sharedManager] callOnMainThreadDelegateOfObject:self
withDelegateMethod:@selector(mediaPlayerTimeChanged:)
withNotificationName:VLCMediaPlayerTimeChanged];
[pool drain];
[pool release];
}
static void HandleMediaPositionChanged(const libvlc_event_t * event, void * self)
......@@ -93,7 +93,7 @@ static void HandleMediaPositionChanged(const libvlc_event_t * event, void * self
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(mediaPlayerPositionChanged:)
withArgumentAsObject:@(event->u.media_player_position_changed.new_position)];
[pool drain];
[pool release];
}
static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void * self)
......@@ -127,8 +127,7 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
withDelegateMethod:@selector(mediaPlayerStateChanged:)
withNotificationName:VLCMediaPlayerStateChanged];
[pool drain];
[pool release];
}
static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * self)
......@@ -139,8 +138,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
withMethod:@selector(mediaPlayerMediaChanged:)
withArgumentAsObject:[VLCMedia mediaWithLibVLCMediaDescriptor:event->u.media_player_media_changed.new_media]];
[pool drain];
[pool release];
}
......
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