[PATCH 0/2] pipeline: simple: Fix matching with an empty media graph
Kieran Bingham
kieran.bingham at ideasonboard.com
Thu Aug 8 19:39:19 CEST 2024
The simple pipeline handler may encounter systems with multiple media
devices that can be supported.
If the first media graph it could support is invalid or empty and a
subsequent media graph could handle it - the simple pipeline handler
would not continue matching to complete the creation of cameras on those
later devices.
The first patch in this series removes the media variable from the pipeline
handler private data as it is not used after the match completes. This
could be later stored in the camera data if it is required on a per
camera basis.
The subsequent patch updates the pipeline handler to iterate attempts to
acquire a supported MediaDevice until they are exhausted, ensureing that
all supportable cameras in a system will be created.
Paul Elder (2):
pipeline: simple: Remove media member variable
pipeline: simple: Fix matching with empty media graphs
src/libcamera/pipeline/simple/simple.cpp | 63 +++++++++++++++---------
1 file changed, 40 insertions(+), 23 deletions(-)
--
2.34.1
More information about the libcamera-devel
mailing list