From 874724877d6e9cbdf23461eaf807c4820d8776e0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 5 Aug 2021 15:42:23 +0200 Subject: [PATCH] filter: handle NULL latency param --- src/pipewire/filter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipewire/filter.c b/src/pipewire/filter.c index 0411836e1..f49c32a99 100644 --- a/src/pipewire/filter.c +++ b/src/pipewire/filter.c @@ -799,6 +799,9 @@ static int handle_latency(struct filter *impl, struct port *port, const struct s struct spa_latency_info info; int res; + if (param == NULL) + return 0; + if ((res = spa_latency_parse(param, &info)) < 0) return res;