From 10426790b06f5f468bf52afe936e0b0ef1ec8d5f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 12 Jul 2019 14:36:49 +0200 Subject: [PATCH] audioconvert: clear buffer allocation state as well --- spa/plugins/audioconvert/audioconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 3f5f4b46f..6cc1c5f55 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -370,6 +370,8 @@ static void clean_convert(struct impl *this) for (i = 0; i < this->n_links; i++) clean_link(this, &this->links[i]); this->n_links = 0; + this->buffers_set[SPA_DIRECTION_INPUT] = false; + this->buffers_set[SPA_DIRECTION_OUTPUT] = false; } static int setup_buffers(struct impl *this, enum spa_direction direction)