From 556e03fea711971e21745fb8ea8cdefff78a04a4 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 14 Mar 2020 16:18:08 +0200 Subject: test: libtest: buffer_source: Close video device right after allocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Niklas Söderlund --- test/libtest/buffer_source.h | 1 - 1 file changed, 1 deletion(-) (limited to 'test/libtest/buffer_source.h') 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 media_; - V4L2VideoDevice *video_; std::vector> buffers_; }; -- cgit v1.2.1