mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-30 05:05:27 +00:00
module-rtp: fix fmodf usage
This commit is contained in:
parent
a76d262db6
commit
51bf143a77
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue