diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-01-30 16:10:40 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-01-30 16:33:25 +0100 |
commit | 5b4221462b9a0edcddd0221bb6d26d6a20cc40a2 (patch) | |
tree | 23ce354db8d5cf2adca511e8d70bbf1846d75ae8 /src/WebRTCLibDataChannel.cpp | |
parent | 86d080b328b4367984cd7932bd1ce676e9ca5103 (diff) | |
download | fork-godot-webrtc-native-5b4221462b9a0edcddd0221bb6d26d6a20cc40a2.tar.gz fork-godot-webrtc-native-5b4221462b9a0edcddd0221bb6d26d6a20cc40a2.tar.bz2 fork-godot-webrtc-native-5b4221462b9a0edcddd0221bb6d26d6a20cc40a2.zip |
Update to libdatachannel 0.20.1, OpenSSL 3.0.13
Replace deprecated options with the (new) standard ones.
Diffstat (limited to 'src/WebRTCLibDataChannel.cpp')
-rw-r--r-- | src/WebRTCLibDataChannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WebRTCLibDataChannel.cpp b/src/WebRTCLibDataChannel.cpp index 6577433..442caf0 100644 --- a/src/WebRTCLibDataChannel.cpp +++ b/src/WebRTCLibDataChannel.cpp @@ -143,12 +143,12 @@ int32_t WebRTCLibDataChannel::_get_id() const { int32_t WebRTCLibDataChannel::_get_max_packet_life_time() const { ERR_FAIL_COND_V(!channel, 0); - return channel->reliability().type == rtc::Reliability::Type::Timed ? std::get<std::chrono::milliseconds>(channel->reliability().rexmit).count() : -1; + return channel->reliability().maxPacketLifeTime.has_value() ? channel->reliability().maxPacketLifeTime.value().count() : -1; } int32_t WebRTCLibDataChannel::_get_max_retransmits() const { ERR_FAIL_COND_V(!channel, 0); - return channel->reliability().type == rtc::Reliability::Type::Rexmit ? std::get<int>(channel->reliability().rexmit) : -1; + return channel->reliability().maxRetransmits.value_or(-1); } String WebRTCLibDataChannel::_get_protocol() const { |