Index: webrtc/modules/video_coding/main/source/receiver.cc |
diff --git a/webrtc/modules/video_coding/main/source/receiver.cc b/webrtc/modules/video_coding/main/source/receiver.cc |
index fbd1fee1999ecf8fd290fbda5892a7e5e9b793ff..e26bd86735dd7801f38bcf933f411351316927b0 100644 |
--- a/webrtc/modules/video_coding/main/source/receiver.cc |
+++ b/webrtc/modules/video_coding/main/source/receiver.cc |
@@ -28,11 +28,21 @@ enum { kMaxReceiverDelayMs = 10000 }; |
VCMReceiver::VCMReceiver(VCMTiming* timing, |
Clock* clock, |
EventFactory* event_factory) |
+ : VCMReceiver(timing, |
+ clock, |
+ rtc::scoped_ptr<EventWrapper>(event_factory->CreateEvent()), |
+ rtc::scoped_ptr<EventWrapper>(event_factory->CreateEvent())) { |
+} |
+ |
+VCMReceiver::VCMReceiver(VCMTiming* timing, |
+ Clock* clock, |
+ rtc::scoped_ptr<EventWrapper> receiver_event, |
+ rtc::scoped_ptr<EventWrapper> jitter_buffer_event) |
: crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), |
clock_(clock), |
- jitter_buffer_(clock_, event_factory), |
+ jitter_buffer_(clock_, jitter_buffer_event.Pass()), |
timing_(timing), |
- render_wait_event_(event_factory->CreateEvent()), |
+ render_wait_event_(receiver_event.Pass()), |
max_video_delay_ms_(kMaxVideoDelayMs) { |
Reset(); |
} |