Bug 876878: null out pointer for GetFrameRateList r=bas a=akeybl
--- a/media/webrtc/trunk/webrtc/modules/video_capture/windows/device_info_ds.cc
+++ b/media/webrtc/trunk/webrtc/modules/video_capture/windows/device_info_ds.cc
@@ -581,17 +581,17 @@ WebRtc_Word32 DeviceInfoDS::CreateCapabi
capability->interlaced = h->dwInterlaceFlags
& (AMINTERLACE_IsInterlaced
| AMINTERLACE_DisplayModeBobOnly);
avgTimePerFrame = h->AvgTimePerFrame;
}
if (hrVC == S_OK)
{
- LONGLONG *frameDurationList;
+ LONGLONG *frameDurationList = NULL;
LONGLONG maxFPS;
long listSize;
SIZE size;
size.cx = capability->width;
size.cy = capability->height;
// GetMaxAvailableFrameRate doesn't return max frame rate always
// eg: Logitech Notebook. This may be due to a bug in that API