Protect shuffle against empty player playlist

This commit is contained in:
Julien BLACHE 2010-05-05 19:17:36 +02:00
parent 36f0d0a76e
commit 682e495ed0

View File

@ -486,6 +486,9 @@ source_shuffle(struct player_source *head)
int nitems;
int i;
if (!head)
return NULL;
ps = head;
nitems = 0;
do