[vlc-commits] aout: also move output queue when resuming
Rémi Denis-Courmont
git at videolan.org
Mon Aug 1 18:14:40 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 1 19:12:18 2011 +0300| [f9c766b9b0348ca665c2117bac438c90d5fe9333] | committer: Rémi Denis-Courmont
aout: also move output queue when resuming
Previously, most of the audio samples in the left in the output buffer
during pause where dropped out on resume. This should fix it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f9c766b9b0348ca665c2117bac438c90d5fe9333
---
src/audio_output/dec.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index a8a8ca7..822869b 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -231,10 +231,8 @@ void aout_DecChangePause( audio_output_t *p_aout, aout_input_t *p_input, bool b_
if( i_duration != 0 )
{
- for( aout_buffer_t *p = p_input->fifo.p_first; p != NULL; p = p->p_next )
- {
- p->i_pts += i_duration;
- }
+ aout_FifoMoveDates( &p_input->fifo, i_duration );
+ aout_FifoMoveDates( &p_aout->fifo, i_duration );
}
aout_OutputPause( p_aout, b_paused, i_date );
aout_unlock( p_aout );
More information about the vlc-commits
mailing list