mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
v4l2: fix enum_input, don't clear the index
This commit is contained in:
parent
8900722f55
commit
4a92f355ad
1 changed files with 2 additions and 0 deletions
|
|
@ -1676,7 +1676,9 @@ static int vidioc_try_fmt(struct file *file, struct v4l2_format *arg)
|
|||
|
||||
static int vidioc_enuminput(struct file *file, struct v4l2_input *arg)
|
||||
{
|
||||
uint32_t index = arg->index;
|
||||
spa_zero(*arg);
|
||||
arg->index = index;
|
||||
switch (arg->index) {
|
||||
case 0:
|
||||
spa_scnprintf((char*)arg->name, sizeof(arg->name), "%s", DEFAULT_CARD);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue