From: Pierre d'Herbemont Date: Sun, 6 Jul 2008 13:43:33 +0000 (+0200) Subject: macosx: Make sure we don't receive PLAY request when the interface quit and libvlc... X-Git-Tag: 0.9.0-test2~178 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=1f4f0a78432bfe8f2aef0b119a181f2e05b3cd29;p=vlc macosx: Make sure we don't receive PLAY request when the interface quit and libvlc is killed. (Hack because the macosx module is squatting the main thread). --- diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index e54438d98c..3d748dc80f 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -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 */