diff --git a/spa/plugins/audioconvert/merger.c b/spa/plugins/audioconvert/merger.c index 7db00c94c..3446d1b27 100644 --- a/spa/plugins/audioconvert/merger.c +++ b/spa/plugins/audioconvert/merger.c @@ -973,6 +973,7 @@ static int port_set_format(void *object, port->have_format = false; else port->have_format = this->have_profile; + port->format.info.raw.rate = 0; clear_buffers(this, port); } } else { diff --git a/spa/plugins/audioconvert/splitter.c b/spa/plugins/audioconvert/splitter.c index 4787d8753..a268b9fb0 100644 --- a/spa/plugins/audioconvert/splitter.c +++ b/spa/plugins/audioconvert/splitter.c @@ -732,6 +732,7 @@ static int port_set_format(void *object, port->have_format = this->have_profile; else port->have_format = false; + port->format.info.raw.rate = 0; clear_buffers(this, port); } } else {