Index: talk/app/webrtc/videosource.cc |
diff --git a/talk/app/webrtc/videosource.cc b/talk/app/webrtc/videosource.cc |
index bed1be94dbb27559789d141eecf0e120c8b2f40e..af3b5475a9d0df09a9ab8cb64898cf846d6d21fb 100644 |
--- a/talk/app/webrtc/videosource.cc |
+++ b/talk/app/webrtc/videosource.cc |
@@ -32,6 +32,7 @@ |
#include "talk/app/webrtc/mediaconstraintsinterface.h" |
#include "talk/session/media/channelmanager.h" |
+#include "webrtc/base/arraysize.h" |
using cricket::CaptureState; |
using webrtc::MediaConstraintsInterface; |
@@ -369,7 +370,7 @@ void VideoSource::Initialize( |
} else { |
// The VideoCapturer implementation doesn't support capability |
// enumeration. We need to guess what the camera supports. |
- for (int i = 0; i < ARRAY_SIZE(kVideoFormats); ++i) { |
+ for (int i = 0; i < arraysize(kVideoFormats); ++i) { |
formats.push_back(cricket::VideoFormat(kVideoFormats[i])); |
} |
} |