mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
module-rtp: fix SSRC warnings
Fix indentation and also suppress the SSRC warning for other formats than audio.
This commit is contained in:
parent
5e295815bf
commit
cfc8d414a9
3 changed files with 16 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue