mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-29 07:58:06 -04:00
module-rtp: Fix rtp timestamps
Because of operator precedence the timestamps where set to 0 if set_timestamp was 0.
This commit is contained in:
parent
7906dc854a
commit
6223715918
1 changed files with 1 additions and 2 deletions
|
|
@ -250,8 +250,7 @@ static void rtp_audio_flush_packets(struct impl *impl, uint32_t num_packets, uin
|
||||||
else
|
else
|
||||||
header.m = 0;
|
header.m = 0;
|
||||||
header.sequence_number = htons(impl->seq);
|
header.sequence_number = htons(impl->seq);
|
||||||
header.timestamp = htonl(impl->ts_offset + timestamp);
|
header.timestamp = htonl(impl->ts_offset + (set_timestamp ? set_timestamp : timestamp));
|
||||||
header.timestamp = htonl(impl->ts_offset + set_timestamp ? set_timestamp : timestamp);
|
|
||||||
|
|
||||||
set_iovec(&impl->ring,
|
set_iovec(&impl->ring,
|
||||||
impl->buffer, BUFFER_SIZE,
|
impl->buffer, BUFFER_SIZE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue