Index: talk/app/webrtc/videosource.cc |
diff --git a/talk/app/webrtc/videosource.cc b/talk/app/webrtc/videosource.cc |
index 7331e0e7a45a54d8e34ca3a3876341382d5cfe99..4e27b438a1b6af364ed2f8630d384039eaa60790 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])); |
} |
} |