]> git.sesse.net Git - vlc/commitdiff
VLM: be sure the input thread has terminated
authorRafaël Carré <rcarre@m2x.nl>
Mon, 1 Sep 2008 13:44:48 +0000 (15:44 +0200)
committerRafaël Carré <rcarre@m2x.nl>
Mon, 1 Sep 2008 13:44:48 +0000 (15:44 +0200)
src/input/vlm.c

index 9397cb089fe2bcb708eefa3903e1a1934ad07386..c0529ae5e3a50d0ddc121078a7307a3d337339a1 100644 (file)
@@ -532,6 +532,7 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
                     msleep( 100000 );
 
                 input_StopThread( p_input );
+                vlc_thread_join( p_input );
                 vlc_object_release( p_input );
             }
             free( psz_header );