diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-02-13 16:57:58 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-02-13 17:27:46 +0000 |
commit | 9cee8620c3ef75ae8c3511922add4e2607628d7c (patch) | |
tree | 3170a35b2f58303f4d518247ea7c5d33140245b3 /test/v4l2_device/v4l2_device_test.cpp | |
parent | ff4e8823992cba2c599d26add3087cc28410fc27 (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/v4l2_device_test.cpp')
-rw-r--r-- | test/v4l2_device/v4l2_device_test.cpp | 4 |
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_; }; |