mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Fix renegotiation
When we are idle and are asked to negotiate, suspend first so that we can do full negotiation again instead of using the old format. Stability fixes.
This commit is contained in:
parent
fd54471249
commit
1370fafd5b
10 changed files with 52 additions and 24 deletions
|
|
@ -333,7 +333,6 @@ spa_alsa_monitor_enum_items (SpaMonitor *monitor,
|
|||
if ((res = alsa_udev_open (this)) < 0)
|
||||
return res;
|
||||
|
||||
again:
|
||||
if (index == 0 || this->index > index) {
|
||||
if (this->enumerate)
|
||||
udev_enumerate_unref (this->enumerate);
|
||||
|
|
@ -349,6 +348,7 @@ again:
|
|||
this->devices = udev_list_entry_get_next (this->devices);
|
||||
this->index++;
|
||||
}
|
||||
again:
|
||||
if (this->devices == NULL) {
|
||||
fill_item (this, &this->uitem, NULL);
|
||||
return SPA_RESULT_ENUM_END;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue