]> git.sesse.net Git - vlc/commitdiff
audio_output: Don't forget to unlock in case of error in DecNew().
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 15 Aug 2008 13:21:24 +0000 (15:21 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 15 Aug 2008 13:29:27 +0000 (15:29 +0200)
src/audio_output/dec.c

index 158932bf6c071193259a4d0f7e8430efe38a6b37..4e48cada7f5109606ceabb39f096c603d8171e16 100644 (file)
@@ -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;
     }