Commit 715be5df authored by George Kiagiadakis's avatar George Kiagiadakis Committed by Wim Taymans
Browse files

pulse: fix counter while populating card_info profiles

parent ba57de9b
Pipeline #162712 passed with stages
in 1 minute and 24 seconds
...@@ -1262,7 +1262,6 @@ static void card_callback(struct card_data *d) ...@@ -1262,7 +1262,6 @@ static void card_callback(struct card_data *d)
continue; continue;
} }
j = i->n_profiles++;
i->profiles[j].name = name; i->profiles[j].name = name;
i->profiles[j].description = name; i->profiles[j].description = name;
i->profiles[j].n_sinks = 1; i->profiles[j].n_sinks = 1;
...@@ -1281,6 +1280,7 @@ static void card_callback(struct card_data *d) ...@@ -1281,6 +1280,7 @@ static void card_callback(struct card_data *d)
i->active_profile = &i->profiles[j]; i->active_profile = &i->profiles[j];
i->active_profile2 = i->profiles2[j]; i->active_profile2 = i->profiles2[j];
} }
j = ++i->n_profiles;
} }
i->profiles2[j] = NULL; i->profiles2[j] = NULL;
d->cb(d->context, i, 0, d->userdata); d->cb(d->context, i, 0, d->userdata);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment