From: Gildas Bazin Date: Fri, 30 Sep 2005 19:36:22 +0000 (+0000) Subject: * modules/audio_filter/resampler/bandlimited.c: re-enabled the bandlimited resampler... X-Git-Tag: 0.8.4~376 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f99ebbc215b85a5d18c379c2cd2ab243b746f031;p=vlc * modules/audio_filter/resampler/bandlimited.c: re-enabled the bandlimited resampler. Commit 12102 is actually bogus since the problem is in fact created by the audio output pipeline introducing more latency than what can be compensated by the default input caching. --- diff --git a/modules/audio_filter/resampler/bandlimited.c b/modules/audio_filter/resampler/bandlimited.c index 41fd4ce263..a0c294b800 100644 --- a/modules/audio_filter/resampler/bandlimited.c +++ b/modules/audio_filter/resampler/bandlimited.c @@ -124,12 +124,6 @@ static int Create( vlc_object_t *p_this ) /* Calculate worst case for the length of the filter wing */ d_factor = (double)p_filter->output.i_rate / p_filter->input.i_rate; - - if( d_factor < (double)1.0 ) - { - return VLC_EGENERIC; - } - i_filter_wing = ((SMALL_FILTER_NMULT + 1)/2.0) * __MAX(1.0, 1.0/d_factor) + 10; p_filter->p_sys->i_buf_size = aout_FormatNbChannels( &p_filter->input ) *