summaryrefslogtreecommitdiff
path: root/src/WebRTCLibPeerConnection.hpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-06-28 22:05:55 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-02 15:12:41 +0200
commit3711ad23f6c936b494041845254565efed8ca6f8 (patch)
tree7e1d1a967f25a2cb2318f9a3a2ea7c1de8cb9a0a /src/WebRTCLibPeerConnection.hpp
parent001be7850090f88e0ff760eddadbe1c03004fd0f (diff)
downloadfork-godot-webrtc-native-3711ad23f6c936b494041845254565efed8ca6f8.tar.gz
fork-godot-webrtc-native-3711ad23f6c936b494041845254565efed8ca6f8.tar.bz2
fork-godot-webrtc-native-3711ad23f6c936b494041845254565efed8ca6f8.zip
Bump webrtc to branch-heads/4472.
Diffstat (limited to 'src/WebRTCLibPeerConnection.hpp')
-rw-r--r--src/WebRTCLibPeerConnection.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WebRTCLibPeerConnection.hpp b/src/WebRTCLibPeerConnection.hpp
index b46d606..f6b0528 100644
--- a/src/WebRTCLibPeerConnection.hpp
+++ b/src/WebRTCLibPeerConnection.hpp
@@ -3,8 +3,8 @@
#include <Godot.hpp> // Godot.hpp must go first, or windows builds breaks
-#include "api/peerconnectioninterface.h" // interface for all things needed from WebRTC
-#include "media/base/mediaengine.h" // needed for CreateModularPeerConnectionFactory
+#include "api/peer_connection_interface.h" // interface for all things needed from WebRTC
+#include "media/base/media_engine.h" // needed for CreateModularPeerConnectionFactory
#include <functional> // std::function
#include <mutex> // mutex @TODO replace std::mutex with Godot mutex
@@ -66,7 +66,7 @@ public:
GodotCSDO(WebRTCLibPeerConnection *parent);
void OnSuccess(webrtc::SessionDescriptionInterface *desc) override;
- void OnFailure(const std::string &error) override;
+ void OnFailure(webrtc::RTCError error) override;
};
/** SetSessionDescriptionObserver callback functions **/
@@ -76,7 +76,7 @@ public:
GodotSSDO(WebRTCLibPeerConnection *parent);
void OnSuccess() override;
- void OnFailure(const std::string &error) override;
+ void OnFailure(webrtc::RTCError error) override;
};
GodotPCO pco;
@@ -86,7 +86,7 @@ public:
std::mutex *mutex_signal_queue;
std::queue<std::function<void()> > signal_queue;
- rtc::Thread *signaling_thread;
+ std::unique_ptr<rtc::Thread> signaling_thread;
rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory;
rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection;
};