Index: webrtc/modules/video_capture/external/video_capture_external.cc |
diff --git a/webrtc/modules/video_capture/external/video_capture_external.cc b/webrtc/modules/video_capture/external/video_capture_external.cc |
index 29b161263c8d8d0f7c3c5cb9fa9d3703ea320170..d636eeeef126c33a23f3159754aa10eee6fcc8b2 100644 |
--- a/webrtc/modules/video_capture/external/video_capture_external.cc |
+++ b/webrtc/modules/video_capture/external/video_capture_external.cc |
@@ -8,19 +8,17 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#include "webrtc/base/refcount.h" |
#include "webrtc/modules/video_capture/video_capture_impl.h" |
-#include "webrtc/system_wrappers/include/ref_count.h" |
namespace webrtc { |
namespace videocapturemodule { |
-VideoCaptureModule* VideoCaptureImpl::Create( |
+rtc::scoped_refptr<VideoCaptureModule> VideoCaptureImpl::Create( |
const int32_t id, |
const char* deviceUniqueIdUTF8) { |
- RefCountImpl<VideoCaptureImpl>* implementation = |
- new RefCountImpl<VideoCaptureImpl>(id); |
- return implementation; |
+ return new rtc::RefCountedObject<VideoCaptureImpl>(id); |
} |
} // namespace videocapturemodule |