changeset 2549:ef59b072a5d2 trunk

[svn] - update playlist->tail when an entry has been removed.
author yaz
date Sun, 18 Feb 2007 22:33:03 -0800
parents 68d1e9761cc5
children 864c12eafb49
files ChangeLog src/audacious/build_stamp.c src/audacious/playlist.c
diffstat 3 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <yaz@cc.rim.or.jp>
+  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 <yaz@cc.rim.or.jp>
   revision [4104]
   - changes in r4102 break jtf. disabled for now.
--- 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 <glib.h>
-const gchar *svn_stamp = "20070219-4104";
+const gchar *svn_stamp = "20070219-4106";
--- 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);