From 0d1f7be0e96a291c98c942b1465d5c8df92a7029 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 13 Oct 2021 17:11:28 +0200 Subject: [PATCH] context: the max quantum is never scaled with samplerate Or else we could end up with a quantum > 8192 when we have a higher samplerate than the default and we crash. See #1702 --- src/pipewire/context.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 13cded5ec..a48e225fc 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -1318,7 +1318,6 @@ again: if (rate_quantum != 0 && current_rate != rate_quantum) { def_quantum = def_quantum * current_rate / rate_quantum; min_quantum = min_quantum * current_rate / rate_quantum; - max_quantum = max_quantum * current_rate / rate_quantum; } /* calculate desired quantum */