internal/pipewire: include remaining size in recvmsg wrapper

This otherwise truncates the received data by len(remaining) bytes.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-12-09 06:36:46 +09:00
parent cf0e7d8c27
commit 44e5aa1a36

View File

@@ -314,7 +314,7 @@ func (ctx *Context) recvmsg(remaining []byte) (payload []byte, err error) {
err = syscall.EPIPE // not wrapped as it did not come from the syscall err = syscall.EPIPE // not wrapped as it did not come from the syscall
} }
if n > 0 { if n > 0 {
payload = ctx.iovecBuf[:n] payload = ctx.iovecBuf[:len(remaining)+n]
} }
return return
} }