From 00f952bcf1f886d6bcb58a162e5c157ad26d4945 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 7 Feb 2023 23:15:42 +0100 Subject: Update to Godot 4.0 rc1. --- src/WebRTCLibPeerConnection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/WebRTCLibPeerConnection.cpp') 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); -- cgit v1.2.3