Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: webrtc/media/webrtc/fakewebrtcvideocapturemodule.h

Issue 1679323002: Cleanup of webrtc::VideoFrame. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698