Commit bb80b436 authored by David Fuhrmann's avatar David Fuhrmann

macosx: remove dead code, small reformatting

parent 8f30f623
......@@ -70,20 +70,14 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
- (void)playOrPause
{
input_thread_t * p_input;
p_input = pl_CurrentInput(VLCIntf);
playlist_t * p_playlist = pl_Get(VLCIntf);
input_thread_t *p_input = pl_CurrentInput(VLCIntf);
playlist_t *p_playlist = pl_Get(VLCIntf);
if (p_input) {
playlist_TogglePause(p_playlist);
vlc_object_release(p_input);
} else {
bool empty;
PL_LOCK;
empty = playlist_IsEmpty(p_playlist);
PL_UNLOCK;
} else {
PLRootType root = [[[[VLCMain sharedInstance] playlist] model] currentRootType];
if ([[[VLCMain sharedInstance] playlist] isSelectionEmpty] && (root == ROOT_TYPE_PLAYLIST || root == ROOT_TYPE_MEDIALIBRARY))
[[[VLCMain sharedInstance] open] openFileGeneric];
......
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