| Index: webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| diff --git a/webrtc/media/engine/fakewebrtcvideocapturemodule.h b/webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| index 43f72b9538ef6c25be4faeb699fbd80b0e1c9668..397ce9c2625b081a187b3f43c6f3584215997a9a 100644
|
| --- a/webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| +++ b/webrtc/media/engine/fakewebrtcvideocapturemodule.h
|
| @@ -90,17 +90,14 @@ class FakeWebRtcVideoCaptureModule : public webrtc::VideoCaptureModule {
|
| return 0;
|
| }
|
|
|
| - bool SendFrame(int w, int h) {
|
| - if (!running_) return false;
|
| + void SendFrame(int w, int h) {
|
| + if (!running_) return;
|
| 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);
|
| }
|
| - return true;
|
| }
|
|
|
| const webrtc::VideoCaptureCapability& cap() const {
|
|
|