]> git.sesse.net Git - vlc/commitdiff
macosx: Make sure we don't receive PLAY request when the interface quit and libvlc...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 6 Jul 2008 13:43:33 +0000 (15:43 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 6 Jul 2008 13:46:16 +0000 (15:46 +0200)
modules/gui/macosx/intf.m

index e54438d98ce0da62227554373b8a7ae7dca312b4..3d748dc80f2ccf4089478ff1ba64047aa72d3ce3 100644 (file)
@@ -1775,6 +1775,12 @@ end:
     /* write cached user defaults to disk */
     [[NSUserDefaults standardUserDefaults] synchronize];
 
+    /* Kill the playlist, so that it doesn't accept new request
+     * such as the play request from vlc.c (we are a blocking interface). */
+    p_playlist = pl_Yield( p_intf );
+    vlc_object_kill( p_playlist );
+    pl_Release( p_intf );
+
     vlc_object_kill( p_intf->p_libvlc );
 
     /* Go back to Run() and make libvlc exit properly */