aboutsummaryrefslogtreecommitdiff
path: root/test/scenario/video_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario/video_stream.h')
-rw-r--r--test/scenario/video_stream.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/scenario/video_stream.h b/test/scenario/video_stream.h
index f0b99db57a..96b6d49f63 100644
--- a/test/scenario/video_stream.h
+++ b/test/scenario/video_stream.h
@@ -14,6 +14,7 @@
#include <vector>
#include "rtc_base/constructor_magic.h"
+#include "rtc_base/synchronization/mutex.h"
#include "test/fake_encoder.h"
#include "test/fake_videorenderer.h"
#include "test/frame_generator_capturer.h"
@@ -53,14 +54,14 @@ class SendVideoStream {
Transport* send_transport,
VideoFrameMatcher* matcher);
- rtc::CriticalSection crit_;
+ Mutex mutex_;
std::vector<uint32_t> ssrcs_;
std::vector<uint32_t> rtx_ssrcs_;
VideoSendStream* send_stream_ = nullptr;
CallClient* const sender_;
- VideoStreamConfig config_ RTC_GUARDED_BY(crit_);
+ VideoStreamConfig config_ RTC_GUARDED_BY(mutex_);
std::unique_ptr<VideoEncoderFactory> encoder_factory_;
- std::vector<test::FakeEncoder*> fake_encoders_ RTC_GUARDED_BY(crit_);
+ std::vector<test::FakeEncoder*> fake_encoders_ RTC_GUARDED_BY(mutex_);
std::unique_ptr<VideoBitrateAllocatorFactory> bitrate_allocator_factory_;
std::unique_ptr<FrameGeneratorCapturer> video_capturer_;
std::unique_ptr<ForwardingCapturedFrameTap> frame_tap_;