]> git.sesse.net Git - vlc/commitdiff
Quit VLC explicitly before we destroy the interface
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 May 2009 18:30:40 +0000 (21:30 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 May 2009 18:30:40 +0000 (21:30 +0300)
If VLC is being destroyed for programmatic reasons (libvlc_release()),
the user might not have "quit".

src/libvlc.c

index 19d093da689d86d3021f50409c40d6a8bbcd65aa..4dbb87687b6983d3311eca1e281f68f363e8ad0a 100644 (file)
@@ -1032,6 +1032,7 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
 
     /* Ask the interfaces to stop and destroy them */
     msg_Dbg( p_libvlc, "removing all interfaces" );
+    libvlc_Quit( p_libvlc );
     intf_DestroyAll( p_libvlc );
 
 #ifdef ENABLE_VLM