Small correction to bandlimited.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 2 Oct 2009 18:42:19 +0000 (20:42 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 3 Oct 2009 16:32:40 +0000 (18:32 +0200)
It does change the timestamp of the audio buffer after a discontinuity.

modules/audio_filter/resampler/bandlimited.c

index 6511898..e40cacd 100644 (file)
@@ -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 */