audioadapter: run the converter after follower drained

When the follower drained, rerun the converter again to let it drain
as well.
This commit is contained in:
Wim Taymans 2021-01-18 10:29:50 +01:00
parent fd520c4b39
commit 19be555fa6

View file

@ -971,9 +971,9 @@ static int impl_node_process(void *object)
status = fstatus;
break;
}
/* if the follower didn't produce more data
* we can stop now */
if ((fstatus & SPA_STATUS_HAVE_DATA) == 0)
/* if the follower didn't produce more data or is
* not drained we can stop now */
if ((fstatus & (SPA_STATUS_HAVE_DATA | SPA_STATUS_DRAINED)) == 0)
break;
}
/* converter produced something or is drained and we