aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pipewire/core.go')
-rw-r--r--internal/pipewire/core.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pipewire/core.go b/internal/pipewire/core.go
index d115da33..f6199c44 100644
--- a/internal/pipewire/core.go
+++ b/internal/pipewire/core.go
@@ -764,7 +764,7 @@ func (core *Core) consume(opcode byte, files []int, unmarshal func(v any)) error
return proxy.setBoundProps(&boundProps)
default:
- return &UnsupportedOpcodeError{opcode, core.String()}
+ panic(&UnsupportedOpcodeError{opcode, core.String()})
}
}
@@ -831,7 +831,7 @@ func (registry *Registry) consume(opcode byte, files []int, unmarshal func(v any
return nil
default:
- return &UnsupportedOpcodeError{opcode, registry.String()}
+ panic(&UnsupportedOpcodeError{opcode, registry.String()})
}
}