Fixed bandlimited when switching from non resampling state.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 2 Oct 2009 18:44:44 +0000 (20:44 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 3 Oct 2009 16:32:40 +0000 (18:32 +0200)
modules/audio_filter/resampler/bandlimited.c

index 0fba703..5577975 100644 (file)
@@ -134,6 +134,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
                                 p_in_buf->i_nb_samples ) - p_in_buf->i_pts;
         }
         p_sys->i_old_wing = 0;
+        p_sys->b_first = true;
         return p_in_buf;
     }