| Index: webrtc/video/video_capture_input.cc
|
| diff --git a/webrtc/video/video_capture_input.cc b/webrtc/video/video_capture_input.cc
|
| index d15932d15fea016c706a4101e2fd41e54ba5c437..ac05e36c4098b238df0a667bbad1c053b8444dc2 100644
|
| --- a/webrtc/video/video_capture_input.cc
|
| +++ b/webrtc/video/video_capture_input.cc
|
| @@ -42,9 +42,7 @@ VideoCaptureInput::VideoCaptureInput(
|
| local_renderer_(local_renderer),
|
| stats_proxy_(stats_proxy),
|
| incoming_frame_cs_(CriticalSectionWrapper::CreateCriticalSection()),
|
| - encoder_thread_(PlatformThread::CreateThread(EncoderThreadFunction,
|
| - this,
|
| - "EncoderThread")),
|
| + encoder_thread_(EncoderThreadFunction, this, "EncoderThread"),
|
| capture_event_(EventWrapper::Create()),
|
| stop_(0),
|
| last_captured_timestamp_(0),
|
| @@ -56,8 +54,8 @@ VideoCaptureInput::VideoCaptureInput(
|
| overuse_observer,
|
| stats_proxy)),
|
| encoding_time_observer_(encoding_time_observer) {
|
| - encoder_thread_->Start();
|
| - encoder_thread_->SetPriority(kHighPriority);
|
| + encoder_thread_.Start();
|
| + encoder_thread_.SetPriority(rtc::kHighPriority);
|
| module_process_thread_->RegisterModule(overuse_detector_.get());
|
| }
|
|
|
| @@ -67,7 +65,7 @@ VideoCaptureInput::~VideoCaptureInput() {
|
| // Stop the thread.
|
| rtc::AtomicOps::ReleaseStore(&stop_, 1);
|
| capture_event_->Set();
|
| - encoder_thread_->Stop();
|
| + encoder_thread_.Stop();
|
| }
|
|
|
| void VideoCaptureInput::IncomingCapturedFrame(const VideoFrame& video_frame) {
|
|
|