Index: webrtc/media/engine/webrtcvideocapturer.cc |
diff --git a/webrtc/media/engine/webrtcvideocapturer.cc b/webrtc/media/engine/webrtcvideocapturer.cc |
index 2b1b62bedd1e27194311263011c544d7a8948f62..ba44b1324eaa4472bc0caa7cb5996d16d1463620 100644 |
--- a/webrtc/media/engine/webrtcvideocapturer.cc |
+++ b/webrtc/media/engine/webrtcvideocapturer.cc |
@@ -19,6 +19,7 @@ |
#include "webrtc/base/thread.h" |
#include "webrtc/base/timeutils.h" |
#include "webrtc/media/engine/webrtcvideoframe.h" |
+#include "webrtc/media/engine/webrtcvideoframefactory.h" |
#include "webrtc/base/win32.h" // Need this to #include the impl files. |
#include "webrtc/modules/video_capture/video_capture_factory.h" |
@@ -112,14 +113,18 @@ |
module_(nullptr), |
captured_frames_(0), |
start_thread_(nullptr), |
- async_invoker_(nullptr) {} |
+ async_invoker_(nullptr) { |
+ set_frame_factory(new WebRtcVideoFrameFactory()); |
+} |
WebRtcVideoCapturer::WebRtcVideoCapturer(WebRtcVcmFactoryInterface* factory) |
: factory_(factory), |
module_(nullptr), |
captured_frames_(0), |
start_thread_(nullptr), |
- async_invoker_(nullptr) {} |
+ async_invoker_(nullptr) { |
+ set_frame_factory(new WebRtcVideoFrameFactory()); |
+} |
WebRtcVideoCapturer::~WebRtcVideoCapturer() {} |