From b80a93a1128e57a4bb6611563ec7414fa318192d Mon Sep 17 00:00:00 2001 From: teuf Date: Sat, 5 Jul 2008 16:37:41 +0000 Subject: Fix bug in thumbnail rearranging code git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2034 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 6 ++++++ src/ithumb-writer.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c84bb12..fd4d7d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-07-05 Christophe Fergeau + + * src/ithumb-writer.c: fix typo in thumbnail rearranging code, we + were wrongly appending Itdb_Thumb_Ipod instances to lists of + Itdb_Thumb_Ipod_Item + 2008-07-05 Christophe Fergeau * src/db-artwork-writer.c: properly set padding to 0 in mhods type 3 diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c index d3d94d4..1f57b93 100644 --- a/src/ithumb-writer.c +++ b/src/ithumb-writer.c @@ -1428,7 +1428,7 @@ ithmb_rearrange_existing_thumbnails (Itdb_DB *db, if (filename) { thumbs = g_hash_table_lookup (filenamehash, filename); - thumbs = g_list_append (thumbs, thumb); + thumbs = g_list_append (thumbs, item); g_hash_table_insert (filenamehash, filename, thumbs); } } @@ -1453,7 +1453,7 @@ ithmb_rearrange_existing_thumbnails (Itdb_DB *db, if (filename) { thumbs = g_hash_table_lookup (filenamehash, filename); - thumbs = g_list_append (thumbs, thumb); + thumbs = g_list_append (thumbs, item); g_hash_table_insert (filenamehash, filename, thumbs); } } -- cgit