[libcamera-devel,0/1] fix: pipeline handlers: Stop exponential calls to `createPipelineHandlers`
mbox series

Message ID 20230305230603.3697024-1-dev@flowerpot.me
Headers show
Series
  • fix: pipeline handlers: Stop exponential calls to `createPipelineHandlers`
Related show

Message

Sophie Friedrich March 5, 2023, 11:06 p.m. UTC
While implementing the libusb enumeration through udev I noticed that
createPipelineHandlers would be called exponentially often after each
time I cycle plugged a usb device. As it turns out there seems to be a
bug in the camera manager which would result in `createPipelineHandlers`
to be called exponentially often after each emitted event on
`devicesAdded`.

I was able to reliable call the above mentioned function over a
thousand times after hotplugging my device only 10 times.


Sophie Friedrich (1):
  fix: pipeline handlers: Stop exponential explosive calls to
    createPipelineHandlers

 src/libcamera/camera_manager.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)