| Index: media/video/capture/win/video_capture_device_factory_win.cc
|
| diff --git a/media/video/capture/win/video_capture_device_factory_win.cc b/media/video/capture/win/video_capture_device_factory_win.cc
|
| index 75ee59d3bf495be332468550d2bb9ef22a16ef5d..9ba7a2ce792288dbbc965e5b5f1faea2f54a72de 100644
|
| --- a/media/video/capture/win/video_capture_device_factory_win.cc
|
| +++ b/media/video/capture/win/video_capture_device_factory_win.cc
|
| @@ -299,11 +299,8 @@ static void GetDeviceSupportedFormatsMediaFoundation(
|
|
|
| DWORD stream_index = 0;
|
| ScopedComPtr<IMFMediaType> type;
|
| - for (hr = reader->GetNativeMediaType(kFirstVideoStream, stream_index,
|
| - type.Receive());
|
| - SUCCEEDED(hr);
|
| - hr = reader->GetNativeMediaType(kFirstVideoStream, stream_index,
|
| - type.Receive())) {
|
| + while (SUCCEEDED(reader->GetNativeMediaType(
|
| + kFirstVideoStream, stream_index, type.Receive()))) {
|
| UINT32 width, height;
|
| hr = MFGetAttributeSize(type, MF_MT_FRAME_SIZE, &width, &height);
|
| if (FAILED(hr)) {
|
|
|