# HG changeset patch # User yaz # Date 1171866783 28800 # Node ID ef59b072a5d2b3807163e63c750bf0a23dac714f # Parent 68d1e9761cc5e68f0af612145a1f679ca2cd1949 [svn] - update playlist->tail when an entry has been removed. diff -r 68d1e9761cc5 -r ef59b072a5d2 ChangeLog --- a/ChangeLog Sun Feb 18 20:42:53 2007 -0800 +++ b/ChangeLog Sun Feb 18 22:33:03 2007 -0800 @@ -1,3 +1,12 @@ +2007-02-19 04:42:53 +0000 Yoshiki Yazawa + revision [4106] + - highly experimental code to speed up loading huge playlist. let me know if it breaks something. + + trunk/src/audacious/playlist.c | 31 +++++++++++++++++++++++-------- + trunk/src/audacious/playlist.h | 1 + + 2 files changed, 24 insertions(+), 8 deletions(-) + + 2007-02-19 04:40:14 +0000 Yoshiki Yazawa revision [4104] - changes in r4102 break jtf. disabled for now. diff -r 68d1e9761cc5 -r ef59b072a5d2 src/audacious/build_stamp.c --- a/src/audacious/build_stamp.c Sun Feb 18 20:42:53 2007 -0800 +++ b/src/audacious/build_stamp.c Sun Feb 18 22:33:03 2007 -0800 @@ -1,2 +1,2 @@ #include -const gchar *svn_stamp = "20070219-4104"; +const gchar *svn_stamp = "20070219-4106"; diff -r 68d1e9761cc5 -r ef59b072a5d2 src/audacious/playlist.c --- a/src/audacious/playlist.c Sun Feb 18 20:42:53 2007 -0800 +++ b/src/audacious/playlist.c Sun Feb 18 22:33:03 2007 -0800 @@ -392,6 +392,7 @@ g_list_free(playlist->entries); playlist->position = NULL; playlist->entries = NULL; + playlist->tail = NULL; PLAYLIST_UNLOCK( playlist->mutex ); @@ -452,6 +453,7 @@ playlist->shuffle = g_list_remove(playlist->shuffle, entry); playlist->queue = g_list_remove(playlist->queue, entry); playlist->entries = g_list_remove_link(playlist->entries, node); + playlist->tail = g_list_last(playlist->entries); playlist_entry_free(entry); g_list_free_1(node);