[v3,0/1] pipeline: simple: Fix matching with an empty media graph
mbox series

Message ID 20250513133751.1381724-1-paul.elder@ideasonboard.com
Headers show
Series
  • pipeline: simple: Fix matching with an empty media graph
Related show

Message

Paul Elder May 13, 2025, 1:37 p.m. UTC
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.

Update 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 (1):
  pipeline: simple: Fix matching with empty media graphs

 src/libcamera/pipeline/simple/simple.cpp | 62 +++++++++++++++++-------
 1 file changed, 45 insertions(+), 17 deletions(-)