module-rtp: fix SSRC warnings

Fix indentation and also suppress the SSRC warning for other formats
than audio.
This commit is contained in:
Wim Taymans 2025-02-17 10:21:17 +01:00
parent 5e295815bf
commit cfc8d414a9
3 changed files with 16 additions and 8 deletions

View file

@ -198,10 +198,10 @@ invalid_len:
return -EINVAL;
unexpected_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);
/* 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;
}

View file

@ -330,8 +330,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;
}

View file

@ -198,8 +198,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;
}