mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
media-session: count params
This commit is contained in:
parent
87946ed2cf
commit
4361e5f326
2 changed files with 9 additions and 9 deletions
|
|
@ -315,12 +315,7 @@ static void update_params(void *data)
|
|||
|
||||
pw_log_debug(NAME" %p: endpoint %p", impl, endpoint);
|
||||
|
||||
n_params = 0;
|
||||
spa_list_for_each(p, &node->obj->param_list, link)
|
||||
n_params++;
|
||||
|
||||
params = alloca(sizeof(struct spa_pod *) * n_params);
|
||||
|
||||
params = alloca(sizeof(struct spa_pod *) * node->obj->n_params);
|
||||
n_params = 0;
|
||||
spa_list_for_each(p, &node->obj->param_list, link) {
|
||||
switch (p->id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue