mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-16 22:05:31 -05:00
module-rtp: calculate payload_size based on MTU
The actual payload size depends on the MTU but should not include the IP/UDP and RTP headers. Fixes #4396
This commit is contained in:
parent
73b5a10021
commit
a53bc035c0
4 changed files with 15 additions and 4 deletions
|
|
@ -361,7 +361,8 @@ static void rtp_audio_process_capture(void *data)
|
|||
pw_log_warn("expected %u != timestamp %u", expected_timestamp, timestamp);
|
||||
impl->have_sync = false;
|
||||
} else if (filled + wanted > (int32_t)SPA_MIN(impl->target_buffer * 8, BUFFER_SIZE / stride)) {
|
||||
pw_log_warn("overrun %u + %u > %u", filled, wanted, BUFFER_SIZE / stride);
|
||||
pw_log_warn("overrun %u + %u > %u/%u", filled, wanted,
|
||||
impl->target_buffer * 8, BUFFER_SIZE / stride);
|
||||
impl->have_sync = false;
|
||||
filled = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue