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:
Wim Taymans 2017-02-02 17:48:39 +01:00
parent fd54471249
commit 1370fafd5b
10 changed files with 52 additions and 24 deletions

View file

@ -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;