[vlc-devel] commit: Fixed invalid unlock on invalid audio format. (Laurent Aimar )

git version control git at videolan.org
Sat Jun 28 23:58:59 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jun 28 21:59:48 2008 +0000| [e0c708fec3e8a001994174b0d647f4ac34cd9e29]

Fixed invalid unlock on invalid audio format.

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

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

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 60dde42..7814be5 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -57,14 +57,14 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
     {
         msg_Err( p_aout, "too many audio channels (%u)",
                  p_format->i_channels );
-        goto error;
+        return NULL;
     }
 
     if( p_format->i_rate > 192000 )
     {
         msg_Err( p_aout, "excessive audio sample frequency (%u)",
                  p_format->i_rate );
-        goto error;
+        return NULL;
     }
 
     /* We can only be called by the decoder, so no need to lock




More information about the vlc-devel mailing list