aout: clear output FIFO when we clear the input FIFO
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 1 Aug 2011 19:47:26 +0000 (22:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 1 Aug 2011 19:47:26 +0000 (22:47 +0300)
src/audio_output/input.c

index dcd3d7a..d2e10ec 100644 (file)
@@ -581,6 +581,7 @@ void aout_InputPlay( audio_output_t * p_aout, aout_input_t * p_input,
         msg_Warn( p_aout, "buffer way too early (%"PRId64"), clearing queue",
                   drift );
         aout_FifoReset( &p_input->fifo );
+        aout_FifoReset( &p_aout->fifo );
         if ( p_input->i_resampling_type != AOUT_RESAMPLING_NONE )
             msg_Warn( p_aout, "timing screwed, stopping resampling" );
         inputResamplingStop( p_input );