Commit 1f4f0a78 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Make sure we don't receive PLAY request when the interface quit and...

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).
parent 8002c90b
...@@ -1775,6 +1775,12 @@ end: ...@@ -1775,6 +1775,12 @@ end:
/* write cached user defaults to disk */ /* write cached user defaults to disk */
[[NSUserDefaults standardUserDefaults] synchronize]; [[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 ); vlc_object_kill( p_intf->p_libvlc );
/* Go back to Run() and make libvlc exit properly */ /* Go back to Run() and make libvlc exit properly */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment