| 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 164421776c3f5b0abc44582ef9d53b7729ab49b4..d63121abe216f4850a0836deff0a464c782b9840 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);
|
|
|
|
|