[vlc-commits] macosx: respect 'playlist-autostart' (close #7272)
Felix Paul Kühne
git at videolan.org
Mon Jul 15 12:38:23 CEST 2013
vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 15 12:35:42 2013 +0200| [1ca568b2f168730df651a153cf2b297fca22f28b] | committer: Felix Paul Kühne
macosx: respect 'playlist-autostart' (close #7272)
(cherry picked from commit dd212bfe22089604415aefa69b33cd8f354cd847)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=1ca568b2f168730df651a153cf2b297fca22f28b
---
modules/gui/macosx/intf.m | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index f850f81..41f6480 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -824,6 +824,13 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_mainwindow updateWindow];
[o_mainwindow updateTimeSlider];
[o_mainwindow updateVolumeSlider];
+
+ playlist_t * p_playlist = pl_Get(VLCIntf);
+ PL_LOCK;
+ BOOL kidsAround = p_playlist->p_local_category->i_children;
+ PL_UNLOCK;
+ if (kidsAround && var_GetBool(p_playlist, "playlist-autostart"))
+ [[self playlist] playItem:nil];
}
- (void)initStrings
More information about the vlc-commits
mailing list