]> git.sesse.net Git - vlc/commitdiff
Fixed invalid unlock on invalid audio format.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 28 Jun 2008 21:59:48 +0000 (21:59 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 28 Jun 2008 22:00:25 +0000 (22:00 +0000)
src/audio_output/dec.c

index 60dde424daf181a68197e90d4ed78f185bb5a82a..7814be5dd8df12622813b40b3d90cf2dcfbc729b 100644 (file)
@@ -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