Commit e0c708fe authored by Laurent Aimar's avatar Laurent Aimar

Fixed invalid unlock on invalid audio format.

parent 470ba2c1
...@@ -57,14 +57,14 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout, ...@@ -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)", msg_Err( p_aout, "too many audio channels (%u)",
p_format->i_channels ); p_format->i_channels );
goto error; return NULL;
} }
if( p_format->i_rate > 192000 ) if( p_format->i_rate > 192000 )
{ {
msg_Err( p_aout, "excessive audio sample frequency (%u)", msg_Err( p_aout, "excessive audio sample frequency (%u)",
p_format->i_rate ); p_format->i_rate );
goto error; return NULL;
} }
/* We can only be called by the decoder, so no need to lock /* We can only be called by the decoder, so no need to lock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment