From b6efcef8b71d287dc62c689269d18c678c760a9e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 14 Dec 2025 05:51:41 +0900 Subject: [PATCH] internal/pipewire: return correct size for nil spa_dict A nil spa_dict results in a None type value being sent over the wire. Signed-off-by: Ophestra --- internal/pipewire/pod.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/pipewire/pod.go b/internal/pipewire/pod.go index 15ff25c..d851cb1 100644 --- a/internal/pipewire/pod.go +++ b/internal/pipewire/pod.go @@ -505,7 +505,8 @@ type SPADict []SPADictItem // Size satisfies [KnownSize] with a value computed at runtime. func (d *SPADict) Size() Word { if d == nil { - return 0 + // None type prefix with zero-length body + return SizePrefix } // struct prefix, NItems value