summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-07-05 16:37:41 +0000
committerteuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-07-05 16:37:41 +0000
commitb80a93a1128e57a4bb6611563ec7414fa318192d (patch)
tree1751f76b837f9161b9d0abf2ba2827b7ea9468b3
parent6302a6841007a91618083a065893a4d596d69900 (diff)
downloadlibgpod-b80a93a1128e57a4bb6611563ec7414fa318192d.tar.gz
libgpod-b80a93a1128e57a4bb6611563ec7414fa318192d.tar.xz
libgpod-b80a93a1128e57a4bb6611563ec7414fa318192d.zip
Fix bug in thumbnail rearranging code
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2034 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog6
-rw-r--r--src/ithumb-writer.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c84bb12..fd4d7d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-07-05 Christophe Fergeau <teuf@gnome.org>
+ * 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 <teuf@gnome.org>
+
* src/db-artwork-writer.c: properly set padding to 0 in mhods type 3
2008-07-05 Christophe Fergeau <teuf@gnome.org>
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);
}
}