]> git.sesse.net Git - vlc/commitdiff
macosx: respect 'playlist-autostart' (close #7272)
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 15 Jul 2013 10:35:42 +0000 (12:35 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 15 Jul 2013 10:35:42 +0000 (12:35 +0200)
modules/gui/macosx/intf.m

index f850f8191573a0d598c1ced34c4329014369e352..41f648080c12f76ac7d4d34adb2829da65f1e26b 100644 (file)
@@ -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