Mercurial > audlegacy
changeset 2380:825c3715b90f trunk
[svn] - handle empty playlists gracefully
author | nenolod |
---|---|
date | Sun, 21 Jan 2007 07:11:08 -0800 |
parents | e146debd1393 |
children | d49913587458 |
files | ChangeLog src/audacious/playlist.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 21 04:28:28 2007 -0800 +++ b/ChangeLog Sun Jan 21 07:11:08 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-21 12:28:28 +0000 Michael Hanselmann <hansmi@forkbomb.ch> + revision [3768] + Check for sz == 0 in vfs_buffered_file_new_from_uri(), return NULL if it's the case. + + trunk/src/audacious/vfs_buffered_file.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + + 2007-01-21 11:32:36 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [3766] - touch .depend after blanking it out
--- 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) {