modules: align rtp_timestamps for sender

When the driver changes, the clock position can also change and there
would be a discont in the rtp_timestamp.

This is not usually a problem except in RAOP mode where the base rtp
timestamp is negotiated and anything that deviates too much is to be
discarded.

If we are not using direct_timestamp for the sender, make sure we always
keep the rtp_time aligned to avoid this problem.

See #5167
This commit is contained in:
Wim Taymans 2026-03-17 14:01:27 +01:00
parent f4587ea434
commit 6bf81ebe59
2 changed files with 6 additions and 3 deletions

View file

@ -109,6 +109,7 @@ struct impl {
uint32_t mtu;
uint32_t header_size;
uint32_t payload_size;
uint32_t ts_align;
struct spa_ringbuffer ring;
uint8_t buffer[BUFFER_SIZE];