From 19be555fa69e20533021468b71ac7d3c4a7e5a67 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 18 Jan 2021 10:29:50 +0100 Subject: [PATCH] audioadapter: run the converter after follower drained When the follower drained, rerun the converter again to let it drain as well. --- spa/plugins/audioconvert/audioadapter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 4f1885c06..b5fcb3448 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -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