mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
module-rtp: half buffer-time for node latency
Spend half of the allowed latency on buffering and the other half on the node-latency.
This commit is contained in:
parent
b32093b896
commit
0d7e20534f
1 changed files with 1 additions and 1 deletions
|
|
@ -556,7 +556,7 @@ static int session_new(struct impl *impl, struct sdp_info *info)
|
|||
|
||||
pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%d", info->info.rate);
|
||||
pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%d/%d",
|
||||
session->target_buffer / info->stride, info->info.rate);
|
||||
session->target_buffer / (2 * info->stride), info->info.rate);
|
||||
pw_properties_set(props, "rtp.origin", info->origin);
|
||||
pw_properties_setf(props, "rtp.payload", "%u", info->payload);
|
||||
if (info->session[0]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue