mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-05 06:46:28 -04:00
vban: don't write too large midi packets
This commit is contained in:
parent
be6bfba8eb
commit
5a8a3b5a54
1 changed files with 3 additions and 0 deletions
|
|
@ -245,6 +245,9 @@ static void vban_midi_flush_packets(struct impl *impl,
|
|||
if (c.type != SPA_CONTROL_Midi)
|
||||
continue;
|
||||
|
||||
if (size > impl->mtu)
|
||||
continue;
|
||||
|
||||
if (len == 0) {
|
||||
/* start new packet */
|
||||
header.n_frames++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue