Commit bc5318a9 authored by Jakob Leben's avatar Jakob Leben

aout: lock output fifo later

parent f66c1e0e
...@@ -53,14 +53,11 @@ int aout_OutputNew( aout_instance_t * p_aout, ...@@ -53,14 +53,11 @@ int aout_OutputNew( aout_instance_t * p_aout,
p_aout->output.output.i_rate = i_rate; p_aout->output.output.i_rate = i_rate;
aout_FormatPrepare( &p_aout->output.output ); aout_FormatPrepare( &p_aout->output.output );
aout_lock_output_fifo( p_aout );
/* Find the best output plug-in. */ /* Find the best output plug-in. */
p_aout->output.p_module = module_need( p_aout, "audio output", "$aout", false ); p_aout->output.p_module = module_need( p_aout, "audio output", "$aout", false );
if ( p_aout->output.p_module == NULL ) if ( p_aout->output.p_module == NULL )
{ {
msg_Err( p_aout, "no suitable audio output module" ); msg_Err( p_aout, "no suitable audio output module" );
aout_unlock_output_fifo( p_aout );
return -1; return -1;
} }
...@@ -163,6 +160,8 @@ int aout_OutputNew( aout_instance_t * p_aout, ...@@ -163,6 +160,8 @@ int aout_OutputNew( aout_instance_t * p_aout,
aout_FormatPrepare( &p_aout->output.output ); aout_FormatPrepare( &p_aout->output.output );
aout_lock_output_fifo( p_aout );
/* Prepare FIFO. */ /* Prepare FIFO. */
aout_FifoInit( p_aout, &p_aout->output.fifo, aout_FifoInit( p_aout, &p_aout->output.fifo,
p_aout->output.output.i_rate ); p_aout->output.output.i_rate );
......
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