summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbcodec/dsp/tdspeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/dsp/tdspeed.c b/lib/rbcodec/dsp/tdspeed.c
index 92dfb31bed..6a495bd989 100644
--- a/lib/rbcodec/dsp/tdspeed.c
+++ b/lib/rbcodec/dsp/tdspeed.c
@@ -478,7 +478,8 @@ static void tdspeed_process_new_format(struct dsp_proc_entry *this,
478 struct sample_format *format = &src->format; 478 struct sample_format *format = &src->format;
479 int channels = format->num_channels; 479 int channels = format->num_channels;
480 480
481 if (format->codec_frequency != st->samplerate) 481 if (format->codec_frequency != st->samplerate ||
482 !dsp_proc_active(dsp, DSP_PROC_TIMESTRETCH))
482 { 483 {
483 /* relevent parameters are changing - all overlap will be discarded */ 484 /* relevent parameters are changing - all overlap will be discarded */
484 st->channels = channels; 485 st->channels = channels;