Index: webrtc/modules/video_capture/video_capture_impl.h |
diff --git a/webrtc/modules/video_capture/video_capture_impl.h b/webrtc/modules/video_capture/video_capture_impl.h |
index 4aa39394c78176b7cd21198d0d2c6c2edb2b6387..9c2cad7c95c91def1c338209a0f74cc374ecb32f 100644 |
--- a/webrtc/modules/video_capture/video_capture_impl.h |
+++ b/webrtc/modules/video_capture/video_capture_impl.h |
@@ -15,6 +15,7 @@ |
* video_capture_impl.h |
*/ |
+#include "webrtc/base/scoped_ref_ptr.h" |
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
#include "webrtc/common_video/rotation.h" |
#include "webrtc/modules/video_capture/video_capture.h" |
@@ -38,8 +39,9 @@ public: |
* id - unique identifier of this video capture module object |
* deviceUniqueIdUTF8 - name of the device. Available names can be found by using GetDeviceName |
*/ |
- static VideoCaptureModule* Create(const int32_t id, |
- const char* deviceUniqueIdUTF8); |
+ static rtc::scoped_refptr<VideoCaptureModule> Create( |
+ const int32_t id, |
+ const char* deviceUniqueIdUTF8); |
/* |
* Create a video capture module object used for external capture. |
@@ -47,8 +49,9 @@ public: |
* id - unique identifier of this video capture module object |
* externalCapture - [out] interface to call when a new frame is captured. |
*/ |
- static VideoCaptureModule* Create(const int32_t id, |
- VideoCaptureExternal*& externalCapture); |
+ static rtc::scoped_refptr<VideoCaptureModule> Create( |
+ const int32_t id, |
+ VideoCaptureExternal*& externalCapture); |
static DeviceInfo* CreateDeviceInfo(const int32_t id); |