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,7 +361,8 @@ static int flush_to_udp_packet(struct impl *impl)
|
||||||
memset(dst, 0, len);
|
memset(dst, 0, len);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
aes_encrypt(impl, dst, len);
|
if (impl->encryption != CRYPTO_NONE)
|
||||||
|
aes_encrypt(impl, dst, len);
|
||||||
|
|
||||||
impl->rtptime += n_frames;
|
impl->rtptime += n_frames;
|
||||||
impl->seq = (impl->seq + 1) & 0xffff;
|
impl->seq = (impl->seq + 1) & 0xffff;
|
||||||
|
|
@ -402,7 +403,8 @@ static int flush_to_tcp_packet(struct impl *impl)
|
||||||
memset(dst, 0, len);
|
memset(dst, 0, len);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
aes_encrypt(impl, dst, len);
|
if (impl->encryption != CRYPTO_NONE)
|
||||||
|
aes_encrypt(impl, dst, len);
|
||||||
|
|
||||||
pkt[0] |= htonl((uint32_t) len + 12);
|
pkt[0] |= htonl((uint32_t) len + 12);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue