module-rtp-sap: Silently ignore other SSRCs if we know the receiver SSRC

If we know the receiver SSRC from the SAP, we can happily ignore packets
on other SSRCs.
This commit is contained in:
Arun Raghavan 2025-02-15 16:43:06 -05:00
parent 13e3918f81
commit 25e58995f5
3 changed files with 25 additions and 3 deletions

View file

@ -197,8 +197,12 @@ invalid_len:
pw_log_warn("invalid RTP length");
return -EINVAL;
unexpected_ssrc:
pw_log_warn("unexpected SSRC (expected %u != %u)",
impl->ssrc, hdr->ssrc);
if (!impl->fixed_ssrc) {
/* We didn't have a configured SSRC, and there's more than one SSRC on
* this address/port pair */
pw_log_warn("unexpected SSRC (expected %u != %u)", impl->ssrc,
hdr->ssrc);
}
return -EINVAL;
}