ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit eaabae67b8dcb1a3aa9fb2b7c8ed6d85e13a1c21
parent e9aee0940e11340dc82d3c0181a084aa5c9b4682
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu, 20 May 2021 02:56:19 -0700

Fix queue removal

If the whole queue was cleared it would prevent items from being
added later.

Diffstat:
Mqueue.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/queue.c b/queue.c @@ -112,7 +112,7 @@ queue_remove(struct queue *q, struct item *item) { if (q->head == item) q->head = item->next; - else if (q->tail == item) + if (q->tail == item) q->tail = item->prev; if (item->prev) item->prev->next = item->next;