mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa-pcm: Fix copy-pasto while listing ctls
Can cause a crash on startup under some circumstances.
This commit is contained in:
parent
6c348e0600
commit
e4da3b95f5
1 changed files with 1 additions and 1 deletions
|
|
@ -790,7 +790,7 @@ static void fetch_bind_ctls(struct state *state)
|
||||||
for (unsigned int i = 0; i < state->num_bind_ctls; i++) {
|
for (unsigned int i = 0; i < state->num_bind_ctls; i++) {
|
||||||
unsigned int numid = 0;
|
unsigned int numid = 0;
|
||||||
|
|
||||||
for (unsigned int j = 0; i < elem_count; j++) {
|
for (unsigned int j = 0; j < elem_count; j++) {
|
||||||
const char* element_name = snd_ctl_elem_list_get_name(element_list, j);
|
const char* element_name = snd_ctl_elem_list_get_name(element_list, j);
|
||||||
|
|
||||||
if (!strcmp(element_name, state->bound_ctls[i].name)) {
|
if (!strcmp(element_name, state->bound_ctls[i].name)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue