single mode: at the end of the song, pause on the next song instead of stop
This commit is contained in:
11
src/queue.c
11
src/queue.c
@@ -44,14 +44,9 @@ queue_next_order(const struct queue *queue, unsigned order)
|
||||
{
|
||||
assert(order < queue->length);
|
||||
|
||||
if (queue->single)
|
||||
{
|
||||
if (queue->repeat && !queue->consume)
|
||||
return order;
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
if (order + 1 < queue->length)
|
||||
if (queue->single && queue->repeat && !queue->consume)
|
||||
return order;
|
||||
else if (order + 1 < queue->length)
|
||||
return order + 1;
|
||||
else if (queue->repeat && (order > 0 || !queue->consume))
|
||||
/* restart at first song */
|
||||
|
Reference in New Issue
Block a user