mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
spa: libcamera: do not try to acquire CameraManager if there is already one
This commit is contained in:
parent
0f6c5a04c7
commit
74b66d939a
1 changed files with 1 additions and 2 deletions
|
|
@ -336,8 +336,7 @@ impl_device_add_listener(void *object, struct spa_hook *listener,
|
|||
spa_return_val_if_fail(impl != NULL, -EINVAL);
|
||||
spa_return_val_if_fail(events != NULL, -EINVAL);
|
||||
|
||||
impl->manager = libcamera_manager_acquire(res);
|
||||
if (!impl->manager)
|
||||
if (!impl->manager && !(impl->manager = libcamera_manager_acquire(res)))
|
||||
return res;
|
||||
|
||||
spa_hook_list_isolate(&impl->hooks, &save, listener, events, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue