module-rtp-sap: send out a default channelmap if none specified

RAVENNA devices (at least Lawo) seem to error out on streams without this property

Co-authored-by: Dewi Seignard <dewiweb@gmail.com>
This commit is contained in:
Dmitry Sharshakov 2023-12-16 19:13:54 +03:00 committed by Wim Taymans
parent c66aad9a7c
commit 6a64ec8b8f

View file

@ -553,6 +553,13 @@ static int send_sap(struct impl *impl, struct session *sess, bool bye)
spa_strbuf_append(&buf,
"i=%d channels: %s\n", sdp->channels,
sdp->channelmap);
} else {
spa_strbuf_append(&buf, "i=%d channels:", sdp->channels);
for (uint i = 1; i <= sdp->channels; i++) {
if (i > 1) spa_strbuf_append(&buf, ",");
spa_strbuf_append(&buf, " AUX%u", i);
}
spa_strbuf_append(&buf, "\n");
}
spa_strbuf_append(&buf,
"a=recvonly\n"