mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -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;
|
return -EINVAL;
|
||||||
unexpected_ssrc:
|
unexpected_ssrc:
|
||||||
if (!impl->fixed_ssrc) {
|
if (!impl->fixed_ssrc) {
|
||||||
/* We didn't have a configured SSRC, and there's more than one SSRC on
|
/* We didn't have a configured SSRC, and there's more than one SSRC on
|
||||||
* this address/port pair */
|
* this address/port pair */
|
||||||
pw_log_warn("unexpected SSRC (expected %u != %u)", impl->ssrc,
|
pw_log_warn("unexpected SSRC (expected %u != %u)", impl->ssrc,
|
||||||
hdr->ssrc);
|
hdr->ssrc);
|
||||||
}
|
}
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -330,8 +330,12 @@ invalid_len:
|
||||||
pw_log_warn("invalid RTP length");
|
pw_log_warn("invalid RTP length");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
unexpected_ssrc:
|
unexpected_ssrc:
|
||||||
pw_log_warn("unexpected SSRC (expected %u != %u)",
|
if (!impl->fixed_ssrc) {
|
||||||
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;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -198,8 +198,12 @@ invalid_len:
|
||||||
pw_log_warn("invalid RTP length");
|
pw_log_warn("invalid RTP length");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
unexpected_ssrc:
|
unexpected_ssrc:
|
||||||
pw_log_warn("unexpected SSRC (expected %u != %u)",
|
if (!impl->fixed_ssrc) {
|
||||||
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;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue