| Index: webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| diff --git a/webrtc/media/engine/fakewebrtcvideocapturemodule.h b/webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| index 397ce9c2625b081a187b3f43c6f3584215997a9a..43f72b9538ef6c25be4faeb699fbd80b0e1c9668 100644
|
| --- a/webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| +++ b/webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| @@ -90,14 +90,17 @@
|
| return 0;
|
| }
|
|
|
| - void SendFrame(int w, int h) {
|
| - if (!running_) return;
|
| + bool SendFrame(int w, int h) {
|
| + if (!running_) return false;
|
| webrtc::VideoFrame sample;
|
| // Setting stride based on width.
|
| - sample.CreateEmptyFrame(w, h, w, (w + 1) / 2, (w + 1) / 2);
|
| + if (sample.CreateEmptyFrame(w, h, w, (w + 1) / 2, (w + 1) / 2) < 0) {
|
| + return false;
|
| + }
|
| if (callback_) {
|
| callback_->OnIncomingCapturedFrame(id_, sample);
|
| }
|
| + return true;
|
| }
|
|
|
| const webrtc::VideoCaptureCapability& cap() const {
|
|
|