summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/device_status.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-10-03 16:06:34 +0200
committerJacopo Mondi <jacopo@jmondi.org>2020-10-07 16:09:22 +0200
commit35f726d4da357a95b6339d77ea43f39c1d6e56c2 (diff)
android: camera_device: Clear streams_ at stop time
When the CameraDevice is stopped, we need to clear the vector of CameraStream instances to make sure they get deleted and all the resources they have acquired get released. Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/raspberrypi/controller/device_status.h')
0 files changed, 0 insertions, 0 deletions
="hl opt">; return; } /* Sanity check that the camera has streams. */ if (camera_->streams().empty()) { cerr << "Camera has no stream" << endl; status_ = TestFail; return; } status_ = TestPass; } CameraTest::~CameraTest() { if (camera_) { camera_->release(); camera_.reset(); } cm_->stop(); delete cm_; }