control/media_instance.c: Don't forget to stop the thread.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 19 Aug 2007 21:53:24 +0000 (21:53 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 19 Aug 2007 21:53:24 +0000 (21:53 +0000)
src/control/media_instance.c

index 34d33ce..b2c6a15 100644 (file)
@@ -61,6 +61,7 @@ static void release_input_thread( libvlc_media_instance_t *p_mi )
     if( should_destroy )
     {
         /* We owned this one */
+        input_StopThread( p_input_thread );
         var_Destroy( p_input_thread, "drawable" );
         input_DestroyThread( p_input_thread );
     }