mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
rtp-stream: Set rtp.ptime on senders not receivers
The pw_stream direction is inverted from what we want (input => sender).
This commit is contained in:
parent
aa681365c3
commit
63bb128948
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
|
|||
} else {
|
||||
impl->psamples = impl->mtu / impl->stride;
|
||||
impl->psamples = SPA_CLAMP(impl->psamples, min_samples, max_samples);
|
||||
if (direction == PW_DIRECTION_OUTPUT)
|
||||
if (direction == PW_DIRECTION_INPUT)
|
||||
pw_properties_setf(props, "rtp.ptime", "%f",
|
||||
impl->psamples * 1000.0 / impl->rate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue