mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-14 05:34:06 -04:00
pipewire-jack defines TYPE_ID_VIDEO=1 between audio and MIDI, shifting TYPE_ID_MIDI to 2. This caused jack_port_type_id() to return 2 for MIDI ports, breaking compatibility with jack1/jack2 which return 1. The jack_port_type_id() return value is part of the public JACK API and consumers such as jackdbus rely on the conventional values established by jack1/jack2: 0 for audio, 1 for MIDI. Map internal TYPE_ID_* values to their jack1/jack2 compatible equivalents before returning. All MIDI variants (MIDI, OSC, UMP) map to 1. Video has no jack1/jack2 equivalent so maps to 3, beyond the conventional range. |
||
|---|---|---|
| .. | ||
| examples | ||
| jack | ||
| src | ||
| meson.build | ||