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>
This commit is contained in:
parent
ff4e882399
commit
9cee8620c3
1 changed files with 4 additions and 0 deletions
|
@ -63,5 +63,9 @@ void V4L2DeviceTest::cleanup()
|
||||||
{
|
{
|
||||||
media_->release();
|
media_->release();
|
||||||
|
|
||||||
|
capture_->streamOff();
|
||||||
|
capture_->releaseBuffers();
|
||||||
|
capture_->close();
|
||||||
|
|
||||||
delete capture_;
|
delete capture_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue