libcamera: emit device removal event

We need to emit the device id with NULL info to emit a device remove
event.

Also indent some code properly.
This commit is contained in:
Wim Taymans 2022-11-14 15:37:42 +01:00
parent 4da154c3a9
commit a57590e334
2 changed files with 6 additions and 5 deletions

View file

@ -208,6 +208,7 @@ static void try_remove_camera(struct impl *impl, const Camera *camera)
return;
spa_log_info(impl->log, "camera removed: %s", device->camera->id().c_str());
spa_device_emit_object_info(&impl->hooks, device->id, NULL);
remove_device(impl, device);
}