[vlc-commits] Cancel interface thread on exit

Rémi Denis-Courmont git at videolan.org
Tue May 31 19:49:00 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 31 20:47:54 2011 +0300| [68af752dca9682394084421f4f8a035b21e435c6] | committer: Rémi Denis-Courmont

Cancel interface thread on exit

DBus, XOSD and Audio Scrobbler interfaces depend on this.

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

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

diff --git a/src/interface/interface.c b/src/interface/interface.c
index 11dfc07..6b400da 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -199,7 +199,10 @@ void intf_DestroyAll( libvlc_int_t *p_libvlc )
         intf_thread_t *p_next = p_intf->p_next;
 
         if( p_intf->pf_run )
+        {
+            vlc_cancel( p_intf->thread );
             vlc_join( p_intf->thread, NULL );
+        }
         module_unneed( p_intf, p_intf->p_module );
         free( p_intf->psz_intf );
         config_ChainDestroy( p_intf->p_cfg );



More information about the vlc-commits mailing list