mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: libcamera: print camera id when it appears/disappears
This commit is contained in:
parent
086de7dcac
commit
13208220d8
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ void Impl::addCamera(std::shared_ptr<Camera> camera)
|
|||
struct impl *impl = this;
|
||||
struct device *device;
|
||||
|
||||
spa_log_info(impl->log, "new camera");
|
||||
spa_log_info(impl->log, "new camera: %s", camera->id().c_str());
|
||||
|
||||
if ((device = find_device(impl, camera.get())) != NULL)
|
||||
return;
|
||||
|
|
@ -206,7 +206,7 @@ void Impl::removeCamera(std::shared_ptr<Camera> camera)
|
|||
struct impl *impl = this;
|
||||
struct device *device;
|
||||
|
||||
spa_log_info(impl->log, "camera removed");
|
||||
spa_log_info(impl->log, "camera removed: %s", camera->id().c_str());
|
||||
if ((device = find_device(impl, camera.get())) == NULL)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue