mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-rtp: Fix framecount vs ptime check
We should use framecount instead of impl->psamples.
This commit is contained in:
parent
803c82abb9
commit
9458367a50
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
|
|||
pw_properties_set(props, "rtp.ptime",
|
||||
spa_dtoa(tmp, sizeof(tmp),
|
||||
impl->psamples * 1000.0 / impl->rate));
|
||||
} else if (fabs((impl->psamples * 1000.0 / impl->rate) - ptime) > 0.1) {
|
||||
} else if (fabs((framecount * 1000.0 / impl->rate) - ptime) > 0.1) {
|
||||
impl->psamples = ptime * impl->rate / 1000;
|
||||
pw_log_warn("rtp.ptime doesn't match rtp.framecount. Choosing rtp.ptime");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue