changeset 1715:bd269f6e26b2

remove caching code, it's pointless.
author William Pitcock <nenolod@atheme.org>
date Thu, 13 Sep 2007 13:22:40 -0500
parents 4f9889f23e67
children fd393aeaad23
files src/dockalbumart/dockalbumart.c
diffstat 1 files changed, 3 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/dockalbumart/dockalbumart.c	Thu Sep 13 13:20:49 2007 -0500
+++ b/src/dockalbumart/dockalbumart.c	Thu Sep 13 13:22:40 2007 -0500
@@ -80,7 +80,6 @@
 static void
 pixbuf_find_and_load(Tuple *tuple)
 {
-    static gchar *last_artwork = NULL;
     GdkPixbuf *out;
     gchar *tmp;
     const gchar *file_path, *file_name;
@@ -93,20 +92,13 @@
         tmp = fileinfo_recursive_get_image(file_path, file_name, 0);
         if (tmp)
         {
-            if (!last_artwork || strcmp(last_artwork, tmp))
-            {
-                GdkPixbuf *new = gdk_pixbuf_new_from_file(tmp, NULL);
-                if (last_artwork) g_free(last_artwork);
-                last_artwork = tmp;
-                dock_set_icon_from_pixbuf(new);
-                g_object_unref(new);                
-            }                              
+            GdkPixbuf *new = gdk_pixbuf_new_from_file(tmp, NULL);
+            dock_set_icon_from_pixbuf(new);
+            g_object_unref(new);                
         }
         else
         {
             GdkPixbuf *new = gdk_pixbuf_new_from_xpm_data((const gchar **) audacious_player_xpm);
-            if (last_artwork) g_free(last_artwork);
-            last_artwork = NULL;
             dock_set_icon_from_pixbuf(new);
             g_object_unref(new);
         }