git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
595f0c8
)
* play after loading intf.
author
Derk-Jan Hartman
<hartman@videolan.org>
Fri, 23 Apr 2004 15:03:45 +0000
(15:03 +0000)
committer
Derk-Jan Hartman
<hartman@videolan.org>
Fri, 23 Apr 2004 15:03:45 +0000
(15:03 +0000)
modules/gui/macosx/intf.m
patch
|
blob
|
history
diff --git
a/modules/gui/macosx/intf.m
b/modules/gui/macosx/intf.m
index
6941b57
..
92bcb22
100644
(file)
--- 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->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];
p_intf->pf_run = Run;
[[VLCApplication sharedApplication] autorelease];
@@
-488,7
+489,21
@@
unsigned int VLCModifiersToCocoa( unsigned int i_key )
[self setSubmenusEnabled: FALSE];
[self manageVolumeSlider];
[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
}
- (void)initStrings