pipewire/spa/plugins/libcamera
Barnabás Pőcze 086de7dcac spa: libcamera: properly dispose of shared_ptr
Previously, in `remove_device()`, the last device would be copied into
the slot of the to-be-remove device. The problem with this is that it
left the shared_ptr untouched in the previously last slot, and hence
creating an extra reference. Fix this by moving instead of copying.

A similar problem is present in `clear_devices()` which also
did not properly dispose of the shared_ptrs. Fix that by
calling `reset()` on each device's camera pointer.
2022-09-15 11:17:47 +00:00
..
libcamera-client.c libcamera: work on rewrite 2021-11-03 17:49:10 +01:00
libcamera-device.cpp spa: libcamera: indent with tabs instead of spaces 2022-09-15 11:17:47 +00:00
libcamera-manager.cpp spa: libcamera: properly dispose of shared_ptr 2022-09-15 11:17:47 +00:00
libcamera-manager.hpp libcamera: work on rewrite 2021-11-03 17:49:10 +01:00
libcamera-source.cpp spa: libcamera: indent with tabs instead of spaces 2022-09-15 11:17:47 +00:00
libcamera-utils.cpp spa: libcamera: indent with tabs instead of spaces 2022-09-15 11:17:47 +00:00
libcamera.c libcamera: work on rewrite 2021-11-03 17:49:10 +01:00
libcamera.h libcamera: work on rewrite 2021-11-03 17:49:10 +01:00
meson.build treewide: meson.build: use dependency variable for SPA 2021-12-28 18:34:06 +01:00