aboutsummaryrefslogtreecommitdiff
path: root/examples/objcnativeapi/objc/objc_call_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/objcnativeapi/objc/objc_call_client.h')
-rw-r--r--examples/objcnativeapi/objc/objc_call_client.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/objcnativeapi/objc/objc_call_client.h b/examples/objcnativeapi/objc/objc_call_client.h
index 90ac20ac01..b952402bc0 100644
--- a/examples/objcnativeapi/objc/objc_call_client.h
+++ b/examples/objcnativeapi/objc/objc_call_client.h
@@ -18,7 +18,7 @@
#include "api/peer_connection_interface.h"
#include "api/scoped_refptr.h"
-#include "rtc_base/critical_section.h"
+#include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_checker.h"
@class RTC_OBJC_TYPE(RTCVideoCapturer);
@@ -50,7 +50,7 @@ class ObjCCallClient {
void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) override;
private:
- const ObjCCallClient* client_;
+ ObjCCallClient* const client_;
};
void CreatePeerConnectionFactory() RTC_RUN_ON(thread_checker_);
@@ -73,7 +73,7 @@ class ObjCCallClient {
rtc::scoped_refptr<webrtc::VideoTrackSourceInterface> video_source_
RTC_GUARDED_BY(thread_checker_);
- rtc::CriticalSection pc_mutex_;
+ webrtc::Mutex pc_mutex_;
rtc::scoped_refptr<webrtc::PeerConnectionInterface> pc_ RTC_GUARDED_BY(pc_mutex_);
};