From: Laurent Aimar Date: Fri, 2 Oct 2009 18:42:19 +0000 (+0200) Subject: Small correction to bandlimited. X-Git-Tag: 1.1.0-ff~3056 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=764c154205ac934bca42267ed3c577ef9c8c1d2a;p=vlc Small correction to bandlimited. It does change the timestamp of the audio buffer after a discontinuity. --- diff --git a/modules/audio_filter/resampler/bandlimited.c b/modules/audio_filter/resampler/bandlimited.c index 6511898f8e..e40cacd3d1 100644 --- a/modules/audio_filter/resampler/bandlimited.c +++ b/modules/audio_filter/resampler/bandlimited.c @@ -112,7 +112,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf ) /* Check if we really need to run the resampler */ if( i_out_rate == p_filter->fmt_in.audio.i_rate ) { - if( /*p_filter->b_continuity && /--* What difference does it make ? :) */ + if( !(p_in_buf->i_flags & BLOCK_FLAG_DISCONTINUITY) && p_sys->i_old_wing ) { /* output the whole thing with the samples from last time */