[vlc-commits] aout: clear output FIFO when we clear the input FIFO

Rémi Denis-Courmont git at videolan.org
Mon Aug 1 21:48:14 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug  1 22:47:26 2011 +0300| [c81a6fddb17faf38f0d1907df7dbd791a5ab8836] | committer: Rémi Denis-Courmont

aout: clear output FIFO when we clear the input FIFO

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c81a6fddb17faf38f0d1907df7dbd791a5ab8836
---

 src/audio_output/input.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index dcd3d7a..d2e10ec 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -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 );



More information about the vlc-commits mailing list