audioadapter: don't emit xrun when drained

This commit is contained in:
Wim Taymans 2021-01-15 09:46:17 +01:00
parent 5a7f4a619a
commit d7ff7d098b

View file

@ -944,7 +944,7 @@ static int impl_node_process(void *object)
break; break;
} }
} else if (!this->driver) { } else if (!this->driver) {
bool done; bool done = false;
while (true) { while (true) {
/* output node (source). First run the converter to make /* output node (source). First run the converter to make
* sure we push out any queued data. Then when it needs * sure we push out any queued data. Then when it needs
@ -981,7 +981,7 @@ static int impl_node_process(void *object)
if (done) if (done)
break; break;
} }
if (!(status & SPA_STATUS_HAVE_DATA)) if (!done)
spa_node_call_xrun(&this->callbacks, 0, 0, NULL); spa_node_call_xrun(&this->callbacks, 0, 0, NULL);
} else { } else {