internal/pipewire: treat unknown opcode as fatal

Skipping events can cause local state to diverge from the server.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-12-11 04:22:03 +09:00
parent 47db461546
commit e60ff660f6
3 changed files with 4 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ func (securityContext *SecurityContext) consume(opcode byte, files []int, _ func
// SecurityContext does not receive any events
default:
return &UnsupportedOpcodeError{opcode, securityContext.String()}
panic(&UnsupportedOpcodeError{opcode, securityContext.String()})
}
}