mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: libcamera: remove unnecessary snprintf()
This commit is contained in:
parent
9eab76d862
commit
b7ef5c92bc
1 changed files with 1 additions and 3 deletions
|
|
@ -151,7 +151,6 @@ static int emit_object_info(struct impl *impl, struct device *device)
|
|||
struct spa_dict_item items[20];
|
||||
struct spa_dict dict;
|
||||
uint32_t n_items = 0;
|
||||
char path[256];
|
||||
|
||||
info = SPA_DEVICE_OBJECT_INFO_INIT();
|
||||
|
||||
|
|
@ -165,8 +164,7 @@ static int emit_object_info(struct impl *impl, struct device *device)
|
|||
ADD_ITEM(SPA_KEY_DEVICE_ENUM_API,"libcamera.manager");
|
||||
ADD_ITEM(SPA_KEY_DEVICE_API, "libcamera");
|
||||
ADD_ITEM(SPA_KEY_MEDIA_CLASS, "Video/Device");
|
||||
snprintf(path, sizeof(path), "%s", device->camera->id().c_str());
|
||||
ADD_ITEM(SPA_KEY_API_LIBCAMERA_PATH, path);
|
||||
ADD_ITEM(SPA_KEY_API_LIBCAMERA_PATH, device->camera->id().c_str());
|
||||
#undef ADD_ITEM
|
||||
|
||||
dict = SPA_DICT_INIT(items, n_items);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue