]> git.sesse.net Git - vlc/commitdiff
media_instance: Forgotten lock().
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 28 Mar 2008 23:25:55 +0000 (00:25 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 29 Mar 2008 01:23:00 +0000 (02:23 +0100)
src/control/media_instance.c

index 73c9b7e50c656826eb2de3dc71e5ae4b45b7ef8b..7e9e3b331369066365c647562262d2f4bea29b43 100644 (file)
@@ -628,7 +628,11 @@ void libvlc_media_instance_stop( libvlc_media_instance_t *p_mi,
                                  libvlc_exception_t *p_e )
 {
     if( p_mi->b_own_its_input_thread )
+    {
+        vlc_mutex_lock( &p_mi->object_lock );
         release_input_thread( p_mi ); /* This will stop the input thread */
+        vlc_mutex_unlock( &p_mi->object_lock );
+    }
     else
     {
         input_thread_t * p_input_thread = libvlc_get_input_thread( p_mi, p_e );