libcamera/test
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
..
camera test: Unify naming of configurations in tests 2019-04-30 22:19:07 +03:00
libtest test: Move include definitions to libtest 2019-01-02 11:08:20 +02:00
media_device libcamera: media_device: Open and close media device inside populate() 2019-05-17 01:33:53 +02:00
pipeline libcamera: media_device: Open and close media device inside populate() 2019-05-17 01:33:53 +02:00
v4l2_device libcamera: Always check return value of MediaDevice::acquire() 2019-05-17 01:33:12 +02:00
v4l2_subdevice libcamera: media_device: Open and close media device inside populate() 2019-05-17 01:33:53 +02:00
event-dispatcher.cpp tests: event-dispatcher: Add processEvents() interruption test 2019-01-23 18:51:56 +02:00
event.cpp libcamera: Don't ignore the return value of read() and write() 2019-04-29 15:54:40 +03:00
geometry.cpp test: geometry: Add tests for Size class comparison operators 2019-04-18 18:13:10 +03:00
list-cameras.cpp libcamera: camera: Handle camera objects through shared pointers 2019-01-21 11:13:53 +02:00
meson.build test: geometry: Add tests for Size class comparison operators 2019-04-18 18:13:10 +03:00
signal.cpp test: signal: Exercise the signal delivery code paths for Object 2019-04-27 17:50:25 +03:00
timer.cpp test: timer: Add a 32 bit wraparound test 2019-01-17 21:31:33 +00:00