]> git.sesse.net Git - vlc/commitdiff
Don't forgot to unlock the mutex.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 20 Oct 2008 16:59:43 +0000 (18:59 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 22 Oct 2008 18:17:40 +0000 (20:17 +0200)
modules/visualization/goom.c

index 5c0c82f4356b51c667d1df6cc6c50ed3a2d37877..9cdd19b6b1c1b43b37b60f50fd2881bcf3451a41 100644 (file)
@@ -234,7 +234,11 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
     }
 
     p_block = block_New( p_sys->p_thread, p_in_buf->i_nb_bytes );
-    if( !p_block ) return;
+    if( !p_block )
+    {
+        vlc_mutex_unlock( &p_sys->p_thread->lock );
+        return;
+    }
     memcpy( p_block->p_buffer, p_in_buf->p_buffer, p_in_buf->i_nb_bytes );
     p_block->i_pts = p_in_buf->start_date;