single mode: at the end of the song, pause on the next song instead of stop

This commit is contained in:
Romain Bignon
2010-05-31 23:32:11 +02:00
parent 53647c8ba1
commit 867b93a5b2
3 changed files with 13 additions and 19 deletions

View File

@@ -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 */