commit fde79b74090c98dc59dfcec05c32aea45677a078 sin <sin@2f30.org> 2014-12-30 17:57:10 +0000 Style fix - group related blocks
output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/output.c b/output.c index ef16366..2fd9076 100644 --- a/output.c +++ b/output.c @@ -33,9 +33,9 @@ initresampler(Outputdesc *desc, int inrate) quality = soxr_quality_spec(RESAMPLEQUALITY, 0); iospec = soxr_io_spec(SOXR_INT16_I, SOXR_INT16_I); + if (desc->resampler) soxr_delete(desc->resampler); - desc->resampler = soxr_create(inrate, desc->rate, desc->channels, NULL,