Mercurial > audlegacy
diff src/audacious/playlist.c @ 2380:825c3715b90f trunk
[svn] - handle empty playlists gracefully
author | nenolod |
---|---|
date | Sun, 21 Jan 2007 07:11:08 -0800 |
parents | ad1d7687814c |
children | 1dc1d36d0347 |
line wrap: on
line diff
--- a/src/audacious/playlist.c Sun Jan 21 04:28:28 2007 -0800 +++ b/src/audacious/playlist.c Sun Jan 21 07:11:08 2007 -0800 @@ -1374,7 +1374,7 @@ playlist->position = NULL; playlist_generate_shuffle_list_nolock(playlist); } - else + else if (playlist->entries != NULL) playlist->position = playlist->entries->data; if (!cfg.repeat) {