spa: libcamera: print camera id when it appears/disappears

This commit is contained in:
Barnabás Pőcze 2022-09-03 03:20:38 +02:00 committed by Wim Taymans
parent 086de7dcac
commit 13208220d8

View file

@ -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;