Commit 092fa829 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

audio_output: Add a missing lock.

Should fix  #1191 (Crash in aout_OutputNextBuffer using auhal on Mac OS X).
parent 205a9fa8
......@@ -287,8 +287,10 @@ static int MixBuffer( aout_instance_t * p_aout )
if( i_nb_bytes < 0 )
{
/* Is it really the best way to do it ? */
vlc_mutex_lock( &p_aout->output_fifo_lock );
aout_FifoSet( p_aout, &p_aout->output.fifo, 0 );
aout_DateSet( &exact_start_date, 0 );
vlc_mutex_unlock( &p_aout->output_fifo_lock );
break;
}
......
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