Index: webrtc/media/webrtc/fakewebrtcvideocapturemodule.h |
diff --git a/webrtc/media/webrtc/fakewebrtcvideocapturemodule.h b/webrtc/media/webrtc/fakewebrtcvideocapturemodule.h |
index 784f2c4f10ebf68e72b9b903e98f016c7c0a57e8..168a38a3d2107469457f5db4b5e7bf0571f71113 100644 |
--- a/webrtc/media/webrtc/fakewebrtcvideocapturemodule.h |
+++ b/webrtc/media/webrtc/fakewebrtcvideocapturemodule.h |
@@ -94,9 +94,7 @@ class FakeWebRtcVideoCaptureModule : public webrtc::VideoCaptureModule { |
if (!running_) return false; |
webrtc::VideoFrame sample; |
// Setting stride based on width. |
- if (sample.CreateEmptyFrame(w, h, w, (w + 1) / 2, (w + 1) / 2) < 0) { |
- return false; |
- } |
+ sample.CreateEmptyFrame(w, h, w, (w + 1) / 2, (w + 1) / 2); |
if (callback_) { |
callback_->OnIncomingCapturedFrame(id_, sample); |
} |