mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
module-rtp: use MTU to set the latency
This commit is contained in:
parent
7fd16b8a77
commit
f87654eb17
1 changed files with 5 additions and 0 deletions
|
|
@ -453,6 +453,11 @@ static int setup_stream(struct impl *impl)
|
||||||
if (props == NULL)
|
if (props == NULL)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
|
if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) {
|
||||||
|
pw_properties_setf(props, PW_KEY_NODE_LATENCY,
|
||||||
|
"%d/%d", impl->mtu / impl->frame_size,
|
||||||
|
impl->info.rate);
|
||||||
|
}
|
||||||
pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%d", impl->info.rate);
|
pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%d", impl->info.rate);
|
||||||
|
|
||||||
impl->stream = pw_stream_new(impl->core,
|
impl->stream = pw_stream_new(impl->core,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue