mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
utils: don't remove pending after first callback
Let the caller remove the pending result when finished. Use non _sync verions to enum_params in node/port/device. Set result.id in alsa and v4l2 correctly.
This commit is contained in:
parent
245a0d5634
commit
aab2b5594f
8 changed files with 89 additions and 60 deletions
|
|
@ -242,6 +242,7 @@ spa_alsa_enum_format(struct state *state, int seq, uint32_t start, uint32_t num,
|
|||
if ((err = spa_alsa_open(state)) < 0)
|
||||
return err;
|
||||
|
||||
result.id = SPA_PARAM_EnumFormat;
|
||||
result.next = start;
|
||||
|
||||
next:
|
||||
|
|
|
|||
|
|
@ -539,6 +539,7 @@ spa_v4l2_enum_format(struct impl *this, int seq,
|
|||
if ((res = spa_v4l2_open(dev, this->props.device)) < 0)
|
||||
return res;
|
||||
|
||||
result.id = SPA_PARAM_EnumFormat;
|
||||
result.next = start;
|
||||
|
||||
if (result.next == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue