From ae30c0c472c982b33768c65d9d5565b44484bf98 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 23 Apr 2004 15:03:45 +0000 Subject: [PATCH] * play after loading intf. --- modules/gui/macosx/intf.m | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index 6941b57894..92bcb22037 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -68,6 +68,7 @@ int E_(OpenIntf) ( vlc_object_t *p_this ) p_intf->p_sys->o_sendport = [[NSPort port] retain]; p_intf->p_sys->p_sub = msg_Subscribe( p_intf ); + p_intf->b_play = VLC_TRUE; p_intf->pf_run = Run; [[VLCApplication sharedApplication] autorelease]; @@ -488,7 +489,21 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key ) [self setSubmenusEnabled: FALSE]; [self manageVolumeSlider]; - + + /* Check if we need to start playing */ + if( p_intf->b_play ) + { + playlist_t *p_playlist = + (playlist_t *)vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, + FIND_ANYWHERE ); + NSLog( @"Ja Nu!!!!"); + if( p_playlist ) + { + playlist_Play( p_playlist ); + vlc_object_release( p_playlist ); + } + + } } - (void)initStrings -- 2.20.1