[vlc-devel] commit: 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). (Pierre d' Herbemont )

git version control git at videolan.org
Sun Jul 6 15:44:08 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul  6 15:43:33 2008 +0200| [1f4f0a78432bfe8f2aef0b119a181f2e05b3cd29]

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).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f4f0a78432bfe8f2aef0b119a181f2e05b3cd29
---

 modules/gui/macosx/intf.m |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index e54438d..3d748dc 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 */




More information about the vlc-devel mailing list