aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-13 22:30:06 +0900
committerOphestra <cat@gensokyo.uk>2025-12-13 22:30:06 +0900
commitde0467a65ef15108cd6d6513e3ed07b7704f3819 (patch)
treec1e28d74cdb400c5e6bc8a3ca31531c45272ee1b /internal/pipewire
parentb5999b88140eb437e87580848513dc1e74bc190b (diff)
internal/pipewire: treat noAck violation as fatal
Receiving this event indicates something has gone terribly wrong somehow, and ignoring Core::BoundProps causes inconsistent state anyway. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire')
-rw-r--r--internal/pipewire/core.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pipewire/core.go b/internal/pipewire/core.go
index 3d103d62..ff13eab2 100644
--- a/internal/pipewire/core.go
+++ b/internal/pipewire/core.go
@@ -332,7 +332,7 @@ var ErrBadBoundProps = errors.New("attempting to store bound props on a proxy th
type noAck struct{}
// setBoundProps should never be called as this proxy should never be targeted by [CoreBoundProps].
-func (noAck) setBoundProps(*CoreBoundProps) error { return ErrBadBoundProps }
+func (noAck) setBoundProps(*CoreBoundProps) error { panic(ErrBadBoundProps) }
// ErrBadRemove is returned when a [CoreRemoveId] event targeting a proxy
// that should never be targeted is received and processed.