summaryrefslogtreecommitdiff
path: root/test/libtest/buffer_source.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-14 16:18:08 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-18 19:15:18 +0200
commit556e03fea711971e21745fb8ea8cdefff78a04a4 (patch)
tree240ffefe48e0e3d3dea62be90b5b4fffe7120785 /test/libtest/buffer_source.h
parentaaf1ce50f9602c838428c8a089e28b83666b759b (diff)
test: libtest: buffer_source: Close video device right after allocation
There's no need to keep the video device open after allocating buffers, as V4L2 supports buffer orphaning and the exported buffers will still be usable. Close the device right after allocation to avoid the need for delayed cleanups. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/libtest/buffer_source.h')
-rw-r--r--test/libtest/buffer_source.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h
index 2d8fc5ac..ae0879c9 100644
--- a/test/libtest/buffer_source.h
+++ b/test/libtest/buffer_source.h
@@ -25,7 +25,6 @@ public:
private:
std::shared_ptr<MediaDevice> media_;
- V4L2VideoDevice *video_;
std::vector<std::unique_ptr<FrameBuffer>> buffers_;
};