Index: webrtc/pc/videotrack.h |
diff --git a/webrtc/pc/videotrack.h b/webrtc/pc/videotrack.h |
index 7e75e14d07eef30f779fd878fcaa01b0c1d8c6ea..659ac9e335697243c78cebbb3249c33583a5bec9 100644 |
--- a/webrtc/pc/videotrack.h |
+++ b/webrtc/pc/videotrack.h |
@@ -27,7 +27,8 @@ class VideoTrack : public MediaStreamTrack<VideoTrackInterface>, |
public: |
static rtc::scoped_refptr<VideoTrack> Create( |
const std::string& label, |
- VideoTrackSourceInterface* source); |
+ VideoTrackSourceInterface* source, |
+ rtc::Thread* worker_thread); |
void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, |
const rtc::VideoSinkWants& wants) override; |
@@ -42,15 +43,17 @@ class VideoTrack : public MediaStreamTrack<VideoTrackInterface>, |
std::string kind() const override; |
protected: |
- VideoTrack(const std::string& id, VideoTrackSourceInterface* video_source); |
+ VideoTrack(const std::string& id, |
+ VideoTrackSourceInterface* video_source, |
+ rtc::Thread* worker_thread); |
~VideoTrack(); |
private: |
// Implements ObserverInterface. Observes |video_source_| state. |
void OnChanged() override; |
+ rtc::Thread* const worker_thread_; |
rtc::ThreadChecker signaling_thread_checker_; |
- rtc::ThreadChecker worker_thread_checker_; |
rtc::scoped_refptr<VideoTrackSourceInterface> video_source_; |
ContentHint content_hint_ GUARDED_BY(signaling_thread_checker_); |
}; |