summaryrefslogtreecommitdiff
path: root/test/v4l2_device
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-13 16:57:58 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-13 17:27:46 +0000
commit9cee8620c3ef75ae8c3511922add4e2607628d7c (patch)
tree3170a35b2f58303f4d518247ea7c5d33140245b3 /test/v4l2_device
parentff4e8823992cba2c599d26add3087cc28410fc27 (diff)
test: v4l2_device: release capture device resources
Ensure that the cleanup operation releases the device and resources. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/v4l2_device')
-rw-r--r--test/v4l2_device/v4l2_device_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/v4l2_device/v4l2_device_test.cpp b/test/v4l2_device/v4l2_device_test.cpp
index 2bdf8cfe..4225291b 100644
--- a/test/v4l2_device/v4l2_device_test.cpp
+++ b/test/v4l2_device/v4l2_device_test.cpp
@@ -63,5 +63,9 @@ void V4L2DeviceTest::cleanup()
{
media_->release();
+ capture_->streamOff();
+ capture_->releaseBuffers();
+ capture_->close();
+
delete capture_;
};