mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: libcamera: Increase devices_str[] buffer size
Some complex camera pipelines, like the IPU6 can involve many /dev/video# nodes (32 in the IPU6 case) and the current size of 128 chars is not enough to hold all /dev/video# nodes in this cases causing SPA_KEY_DEVICE_DEVIDS to get truncated, which in turn breaks the filtering of V4L2 devices which are used by a libcamera driven camera in wireplumber. Fix this by increasing the size of devices_str[] to 256. This fixes wireplumber adding a bunch of non-function V4L2 video sources, e.g. before this "wpctl status" outputs the following video sources: Video ├─ Devices: ... ├─ Sources: │ 90. ov2740 │ * 115. ipu6 (V4L2) ... │ 135. ipu6 (V4L2) │ ├─ Filters: After this fix the output is: Video ├─ Devices: ... ├─ Sources: │ * 92. ov2740 │ ├─ Filters: Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
0cfd576517
commit
b79f77b73d
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ static int emit_info(struct impl *impl, bool full)
|
|||
uint32_t n_items = 0;
|
||||
struct spa_device_info info;
|
||||
struct spa_param_info params[2];
|
||||
char path[256], name[256], devices_str[128];
|
||||
char path[256], name[256], devices_str[256];
|
||||
struct spa_strbuf buf;
|
||||
|
||||
info = SPA_DEVICE_INFO_INIT();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue