Add minor fixes to video_capture_ios.mm in order to make it more robust.

R=tkchin@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/46429005

Patch from Iurii Shevchuk <youwrk@gmail.com>.

Cr-Commit-Position: refs/heads/master@{#8763}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8763 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tkchin@webrtc.org 2015-03-17 20:13:15 +00:00
parent 2161234cf6
commit da4fcc494c

View File

@ -31,11 +31,13 @@ VideoCaptureIos::VideoCaptureIos(const int32_t capture_id)
capability_.width = kDefaultWidth;
capability_.height = kDefaultHeight;
capability_.maxFPS = kDefaultFrameRate;
capture_device_ = nil;
}
VideoCaptureIos::~VideoCaptureIos() {
if (is_capturing_) {
[capture_device_ stopCapture];
capture_device_ = nil;
}
}