diff --git a/media/webrtc/trunk/webrtc/modules/video_capture/windows/sink_filter_ds.cc b/media/webrtc/trunk/webrtc/modules/video_capture/windows/sink_filter_ds.cc index d1f887be5bb7..79f79c253b57 100644 --- a/media/webrtc/trunk/webrtc/modules/video_capture/windows/sink_filter_ds.cc +++ b/media/webrtc/trunk/webrtc/modules/video_capture/windows/sink_filter_ds.cc @@ -319,7 +319,7 @@ CaptureInputPin::Receive(IN IMediaSample* pIMediaSample) { reinterpret_cast(mFilter)->LockReceive(); hr = BaseInputPin::Receive(pIMediaSample); - if (SUCCEEDED(hr)) { + if (hr == S_OK) { const int32_t length = pIMediaSample->GetActualDataLength(); unsigned char* pBuffer = NULL;