[vlc-devel] commit: Quit VLC explicitly before we destroy the interface ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 23 20:31:51 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 23 21:30:40 2009 +0300| [b13a8009cc264d7442cd9fd4e884fec4196fc561] | committer: Rémi Denis-Courmont 

Quit VLC explicitly before we destroy the interface

If VLC is being destroyed for programmatic reasons (libvlc_release()),
the user might not have "quit".

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

 src/libvlc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 19d093d..4dbb876 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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




More information about the vlc-devel mailing list