From 013e94ee4edb3d4b38155a681dcab8d6ab33a0d1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 25 Sep 2020 18:24:04 +0200 Subject: [PATCH] audioadapter: propagate errors from the follower --- spa/plugins/audioconvert/audioadapter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index d75793cfa..569e0beb3 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -914,6 +914,10 @@ static int impl_node_process(void *object) /* as long as the converter produced something or * is drained, process the follower. */ fstatus = spa_node_process(this->follower); + if (fstatus < 0) { + status = fstatus; + break; + } /* if the follower doesn't need more data or is * drained we can stop */ if ((fstatus & SPA_STATUS_NEED_DATA) == 0 || @@ -948,6 +952,10 @@ static int impl_node_process(void *object) /* the converter needs more data, schedule the * follower */ fstatus = spa_node_process(this->follower); + if (fstatus < 0) { + status = fstatus; + break; + } /* if the follower didn't produce more data * we can stop now */ if ((fstatus & SPA_STATUS_HAVE_DATA) == 0)