From 1f4f0a78432bfe8f2aef0b119a181f2e05b3cd29 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sun, 6 Jul 2008 15:43:33 +0200 Subject: [PATCH] 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). --- modules/gui/macosx/intf.m | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.39.2