From: Andre Noll Date: Fri, 1 Jan 2021 15:05:56 +0000 (+0100) Subject: prebuffer: Bail out on bufffer tree errors. X-Git-Tag: v0.6.3~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=23913cbbfc98;p=paraslash.git prebuffer: Bail out on bufffer tree errors. Without this, the prebuffer filter might stay active forever, occupying a slot of para_audiod until no more slots are available. This was observed with the udp receiver. --- diff --git a/prebuffer_filter.c b/prebuffer_filter.c index 05ceb88c..1988e6e0 100644 --- a/prebuffer_filter.c +++ b/prebuffer_filter.c @@ -60,6 +60,9 @@ static int prebuffer_post_select(__a_unused struct sched *s, void *context) int ret; ret = task_get_notification(fn->task); + if (ret < 0) + return ret; + ret = btr_node_status(btrn, size, BTR_NT_INTERNAL); if (ret < 0) return ret; if (ppd->barrier.tv_sec == 0)