mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
raop: only encrypt when enabled
This commit is contained in:
parent
4695bd32c4
commit
5d6690ebe7
1 changed files with 4 additions and 2 deletions
|
|
@ -361,6 +361,7 @@ static int flush_to_udp_packet(struct impl *impl)
|
|||
memset(dst, 0, len);
|
||||
break;
|
||||
}
|
||||
if (impl->encryption != CRYPTO_NONE)
|
||||
aes_encrypt(impl, dst, len);
|
||||
|
||||
impl->rtptime += n_frames;
|
||||
|
|
@ -402,6 +403,7 @@ static int flush_to_tcp_packet(struct impl *impl)
|
|||
memset(dst, 0, len);
|
||||
break;
|
||||
}
|
||||
if (impl->encryption != CRYPTO_NONE)
|
||||
aes_encrypt(impl, dst, len);
|
||||
|
||||
pkt[0] |= htonl((uint32_t) len + 12);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue