mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pipewire: module-vban: fix vban serial header
The expression `VBAN_PROTOCOL_SERIAL | vban_BPSList[14]` is assigned
to an 8 bit field of the header, but, `vban_BPSList[14]` being
115200, it does not fit. Instead, its index, 14, should be
placed in the header.
In addition to fixing the issue, add `-Werror=constant-conversion`,
and clang diagnostic that catches such issues.
Fixes: 1a5514e5cf ("module-vban: create streams per stream_name")
This commit is contained in:
parent
a4e2d9cbb0
commit
705c2a652b
3 changed files with 59 additions and 7 deletions
|
|
@ -101,6 +101,7 @@ common_flags = [
|
|||
'-Wunused-result',
|
||||
'-Werror=return-type',
|
||||
'-Werror=float-conversion',
|
||||
'-Werror=constant-conversion',
|
||||
]
|
||||
|
||||
cc_flags = common_flags + [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue