libcamera/test/v4l2_subdevice
Niklas Söderlund 5868d73e77 libcamera: media_device: Open and close media device inside populate()
Remove the need for the caller to open and close the media device when
populating the MediaDevice. This is done as an effort to make the usage
of the MediaDevice less error prone and the interface stricter.

The rework also revealed and fixes a potential memory leak in
MediaDevice::populate() where resources would not be deleted if the
second MEDIA_IOC_G_TOPOLOGY would fail.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2019-05-17 01:33:53 +02:00
..
list_formats.cpp libcamera: v4l2_subdevice: Add method to retrieve the media entity 2019-04-18 18:13:16 +03:00
meson.build test: v4l2_subdevice: Add ListFormat test 2019-03-02 18:31:30 +01:00
test_formats.cpp libcamera: Use the Size class through libcamera 2019-04-30 22:18:42 +03:00
v4l2_subdevice_test.cpp libcamera: media_device: Open and close media device inside populate() 2019-05-17 01:33:53 +02:00
v4l2_subdevice_test.h test: v4l2_subdevice: Add format handling test 2019-03-01 12:33:17 +01:00