[vlc-devel] commit: Don't forgot to unlock the mutex. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Oct 22 20:19:33 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Oct 20 18:59:43 2008 +0200| [26ddd19665fdf09fbefb765ccbe7951b6f82f26b] | committer: Rémi Duraffort
Don't forgot to unlock the mutex.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=26ddd19665fdf09fbefb765ccbe7951b6f82f26b
---
modules/visualization/goom.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index 5c0c82f..9cdd19b 100644
--- a/modules/visualization/goom.c
+++ b/modules/visualization/goom.c
@@ -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;
More information about the vlc-devel
mailing list