[vlc-devel] commit: audio_output: Don't forget to unlock in case of error in DecNew(). (Pierre d'Herbemont )

git version control git at videolan.org
Fri Aug 15 15:26:33 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri Aug 15 15:21:24 2008 +0200| [976497ae216a0c9db2d1e33d956ec621eceee073] | committer: Pierre d'Herbemont 

audio_output: Don't forget to unlock in case of error in DecNew().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=976497ae216a0c9db2d1e33d956ec621eceee073
---

 src/audio_output/dec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 158932b..4e48cad 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -146,6 +146,7 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
     if ( aout_MixerNew( p_aout ) == -1 )
     {
         aout_OutputDelete( p_aout );
+        vlc_mutex_unlock( &p_aout->input_fifos_lock );
         goto error;
     }
 




More information about the vlc-devel mailing list