mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 18:35:07 +03:00
When closing the libcamerasrc, the reference to camera is released and the camera manager is stopped. However, the camera configuration still exists at that point, and holds a reference to the camera. This leads to a warning from the device enumerator complaining that the media devices are still in use: [1:53:48.792327560] [408] ERROR DeviceEnumerator device_enumerator.cpp:165 Removing media device /dev/media1 while still in use [1:53:48.792354022] [408] ERROR DeviceEnumerator device_enumerator.cpp:165 Removing media device /dev/media0 while still in use A crash follows when the libcamerasrc is finalized, as deleting the camera configuration will then release the last reference to the camera, which attempts to delete the camera object with deleteLater() without an event dispatcher. Fix it by deleting the camera configuration before stopping the camera manager. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> |
||
---|---|---|
.. | ||
gstlibcamera-utils.cpp | ||
gstlibcamera-utils.h | ||
gstlibcamera.cpp | ||
gstlibcameraallocator.cpp | ||
gstlibcameraallocator.h | ||
gstlibcamerapad.cpp | ||
gstlibcamerapad.h | ||
gstlibcamerapool.cpp | ||
gstlibcamerapool.h | ||
gstlibcameraprovider.cpp | ||
gstlibcameraprovider.h | ||
gstlibcamerasrc.cpp | ||
gstlibcamerasrc.h | ||
meson.build |