Bug 876878: null out pointer for GetFrameRateList r=bas a=akeybl
authorRandell Jesup <rjesup@jesup.org>
Thu, 30 May 2013 16:48:40 -0400
changeset 138649 34fdc5b5710d0edbc7b80ab70cb25205d2df67d6
parent 138648 5d2958ada0477652ef3c0191ff969c547376e683
child 138650 2b6a584d710f0bfa0749728e4e3897c2af2ee95f
push id3837
push userrjesup@wgate.com
push dateTue, 04 Jun 2013 18:19:13 +0000
treeherdermozilla-aurora@2b6a584d710f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, akeybl
bugs876878
milestone23.0a2
Bug 876878: null out pointer for GetFrameRateList r=bas a=akeybl
media/webrtc/trunk/webrtc/modules/video_capture/windows/device_info_ds.cc
--- 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