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