module-rtp: fix fmodf usage

This commit is contained in:
Wim Taymans 2024-06-18 16:01:41 +02:00
parent a76d262db6
commit 51bf143a77

View file

@ -507,7 +507,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
}
/* We're not expecting odd ptimes, so this modulo should be 0 */
if (fmodf(impl->target_buffer, ptime != 0)) {
if (fmodf(impl->target_buffer, ptime) != 0) {
pw_log_warn("sess.latency.msec should be an integer multiple of rtp.ptime");
impl->target_buffer = (uint32_t)((impl->target_buffer / ptime) * impl->psamples);
}