From 5b4221462b9a0edcddd0221bb6d26d6a20cc40a2 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 30 Jan 2024 16:10:40 +0100 Subject: Update to libdatachannel 0.20.1, OpenSSL 3.0.13 Replace deprecated options with the (new) standard ones. --- src/WebRTCLibPeerConnection.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/WebRTCLibPeerConnection.cpp') diff --git a/src/WebRTCLibPeerConnection.cpp b/src/WebRTCLibPeerConnection.cpp index 88bd29a..69bb89f 100644 --- a/src/WebRTCLibPeerConnection.cpp +++ b/src/WebRTCLibPeerConnection.cpp @@ -96,11 +96,9 @@ Error WebRTCLibPeerConnection::_parse_channel_config(rtc::DataChannelInit &r_con // Channels cannot be both time-constrained and retry-constrained. ERR_FAIL_COND_V(p_dict.has("maxPacketLifeTime") && p_dict.has("maxRetransmits"), ERR_INVALID_PARAMETER); if (p_dict.has("maxPacketLifeTime")) { - r_config.reliability.type = rtc::Reliability::Type::Timed; - r_config.reliability.rexmit = std::chrono::milliseconds(p_dict["maxPacketLifeTime"].operator int32_t()); + r_config.reliability.maxPacketLifeTime = std::chrono::milliseconds(p_dict["maxPacketLifeTime"].operator int32_t()); } else if (p_dict.has("maxRetransmits")) { - r_config.reliability.type = rtc::Reliability::Type::Rexmit; - r_config.reliability.rexmit = p_dict["maxRetransmits"].operator int32_t(); + r_config.reliability.maxRetransmits = p_dict["maxRetransmits"].operator int32_t(); } if (p_dict.has("ordered") && p_dict["ordered"].operator bool() == false) { r_config.reliability.unordered = true; -- cgit v1.2.3