Commit bb80b436 authored by David's avatar David
Browse files

macosx: remove dead code, small reformatting

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