mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: libcamera: source: handle camera acquire failure
Check the return value of `Camera::acquire()` and return the error
if that fails.
(cherry picked from commit f53ac8d57c)
This commit is contained in:
parent
a233905f75
commit
3dd413e131
1 changed files with 3 additions and 1 deletions
|
|
@ -212,7 +212,9 @@ int spa_libcamera_open(struct impl *impl)
|
|||
return 0;
|
||||
|
||||
spa_log_info(impl->log, "open camera %s", impl->device_id.c_str());
|
||||
impl->camera->acquire();
|
||||
|
||||
if (int res = impl->camera->acquire(); res < 0)
|
||||
return res;
|
||||
|
||||
impl->allocator = new FrameBufferAllocator(impl->camera);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue