vban: don't write too large midi packets

This commit is contained in:
Wim Taymans 2026-05-04 09:56:30 +02:00
parent be6bfba8eb
commit 5a8a3b5a54

View file

@ -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++;