Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net> --- src/pulsecore/resampler.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index c9b8b7d..2cbcc52 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -1056,7 +1056,6 @@ static pa_memchunk* convert_to_work_format(pa_resampler *r, pa_memchunk *input) n_samples = (unsigned) ((input->length / r->i_fz) * r->i_ss.channels); - r->to_work_format_buf.index = 0; r->to_work_format_buf.length = r->w_sz * n_samples; r->to_work_format_buf_size = fit_buf(r, &r->to_work_format_buf, r->to_work_format_buf_size); @@ -1171,7 +1170,6 @@ static pa_memchunk *resample(pa_resampler *r, pa_memchunk *input) { out_n_frames = ((in_n_frames*r->o_ss.rate)/r->i_ss.rate)+EXTRA_FRAMES; - r->resample_buf.index = 0; r->resample_buf.length = r->w_fz * out_n_frames; r->resample_buf_size = fit_buf(r, &r->resample_buf, r->resample_buf_size); @@ -1203,7 +1201,6 @@ static pa_memchunk *convert_from_work_format(pa_resampler *r, pa_memchunk *input n_samples = (unsigned) (input->length / r->w_sz); n_frames = n_samples / r->o_ss.channels; - r->from_work_format_buf.index = 0; r->from_work_format_buf.length = r->o_fz * n_frames; r->from_work_format_buf_size = fit_buf(r, &r->from_work_format_buf, r->from_work_format_buf_size); -- 1.8.3.2