mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-30 13:14:16 -04:00
spa: libcamera: expose libcamera version
Expose the libcamera header and library versions in the device properties similarly to `api.v4l2.cap.version` used by the v4l2 plugin. The keys are not yet promoted into the public `keys.h` header file.
This commit is contained in:
parent
6dc55d2cb4
commit
44176d4118
4 changed files with 25 additions and 1 deletions
|
|
@ -132,6 +132,8 @@ int emit_object_info(struct impl *impl, const struct device *device)
|
|||
{ SPA_KEY_DEVICE_API, "libcamera" },
|
||||
{ SPA_KEY_MEDIA_CLASS, "Video/Device" },
|
||||
{ SPA_KEY_API_LIBCAMERA_PATH, device->camera->id().c_str() },
|
||||
{ KEY_VERSION_LIBRARY, libcamera_library_version() },
|
||||
{ KEY_VERSION_HEADER, libcamera_header_version() },
|
||||
};
|
||||
|
||||
dict = SPA_DICT_INIT_ARRAY(items);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue