libcamera/src
Hans de Goede a3fb0b3d0a libcamera: pipeline_handler: Fix unlocking media devices too early
PipelineHandler::acquire() only locks the media devices when the first
camera is acquired. If a second camera of a pipeline is acquired only
useCount_ is increased and nothing else is done.

When releasing cameras PipelineHandler::release() should only unlock
the media devices when the last camera is released. But the old code
unlocked on every release().

Fix PipelineHandler::release() to only release the media devices when
the last camera is released.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Harvey Yang <chenghaoyang@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2024-08-25 03:06:06 +03:00
..
android libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
apps libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
gstreamer libcamera: Fix header grouping 2024-08-12 14:57:35 +03:00
ipa ipa: libipa: Add missing CameraSensorHelper fn label in docs 2024-08-12 15:44:23 +03:00
libcamera libcamera: pipeline_handler: Fix unlocking media devices too early 2024-08-25 03:06:06 +03:00
py py: gen-py-controls: Convert to jinja2 templates 2024-08-16 00:28:32 +03:00
v4l2 v4l2: v4l2_compat: Fix ioctl() prototype with musl C library 2024-07-25 11:57:15 +01:00
meson.build v4l2: Move the v4l2 compat layer to libexec/libcamera 2023-05-04 20:05:02 +01:00