mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
module-rtp: fix fmodf usage
This commit is contained in:
parent
a76d262db6
commit
51bf143a77
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
/* 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");
|
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);
|
impl->target_buffer = (uint32_t)((impl->target_buffer / ptime) * impl->psamples);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue