# HG changeset patch # User nenolod # Date 1169392268 28800 # Node ID 825c3715b90f75cb03902d799aaf7a475c3bd530 # Parent e146debd139362163b0b96d16de262ba2667743e [svn] - handle empty playlists gracefully diff -r e146debd1393 -r 825c3715b90f ChangeLog --- 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 + 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 revision [3766] - touch .depend after blanking it out diff -r e146debd1393 -r 825c3715b90f src/audacious/playlist.c --- 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) {