From: Peter Meerwald Date: Sun, 21 Jul 2013 21:14:45 +0000 (+0200) Subject: resampler: Cleanup, index of memchunks is not used X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/d0fd59c34c6745fe62db6cc0f44b1a1004ea8f47 resampler: Cleanup, index of memchunks is not used Signed-off-by: Peter Meerwald --- diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index 638b53f7..3ac8f5e5 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -1168,7 +1168,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); @@ -1283,7 +1282,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); @@ -1316,7 +1314,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);