summaryrefslogtreecommitdiff
path: root/src/WebRTCLibPeerConnection.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-02-07 23:15:42 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-02-09 15:31:39 +0100
commit00f952bcf1f886d6bcb58a162e5c157ad26d4945 (patch)
tree42de960838ce444a1c5ded501e4f8faac3379c7f /src/WebRTCLibPeerConnection.cpp
parentd7032f7b852e2e0acfc6cc1cdd1a17238529abac (diff)
downloadfork-godot-webrtc-native-00f952bcf1f886d6bcb58a162e5c157ad26d4945.tar.gz
fork-godot-webrtc-native-00f952bcf1f886d6bcb58a162e5c157ad26d4945.tar.bz2
fork-godot-webrtc-native-00f952bcf1f886d6bcb58a162e5c157ad26d4945.zip
Update to Godot 4.0 rc1.
Diffstat (limited to 'src/WebRTCLibPeerConnection.cpp')
-rw-r--r--src/WebRTCLibPeerConnection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/WebRTCLibPeerConnection.cpp b/src/WebRTCLibPeerConnection.cpp
index 6f216e0..0744c9b 100644
--- a/src/WebRTCLibPeerConnection.cpp
+++ b/src/WebRTCLibPeerConnection.cpp
@@ -234,7 +234,11 @@ Error WebRTCLibPeerConnection::_set_local_description(const String &p_type, cons
return OK;
}
+#ifdef GDNATIVE_WEBRTC
Error WebRTCLibPeerConnection::_add_ice_candidate(const String &sdpMidName, int64_t sdpMlineIndexName, const String &sdpName) try {
+#else
+Error WebRTCLibPeerConnection::_add_ice_candidate(const String &sdpMidName, int32_t sdpMlineIndexName, const String &sdpName) try {
+#endif
ERR_FAIL_COND_V(!peer_connection, ERR_UNCONFIGURED);
rtc::Candidate candidate(sdpName.utf8().get_data(), sdpMidName.utf8().get_data());
peer_connection->addRemoteCandidate(candidate);