diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-covers.c | 6 | ||||
-rw-r--r-- | tests/test-photos.c | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/test-covers.c b/tests/test-covers.c index 195f907..20b4d7b 100644 --- a/tests/test-covers.c +++ b/tests/test-covers.c @@ -64,11 +64,11 @@ save_song_thumbnails (Itdb_Track *song) static guint count = 0; GList *it; GList *thumbs; - Itdb_Thumb_Ipod *thumb = (Itdb_Thumb_Ipod*)song->artwork->thumbnail; - if (thumb == NULL) { + if (song->artwork->thumbnail == NULL) { return; } - thumbs = itdb_thumb_ipod_to_pixbufs (song->itdb->device, thumb); + thumbs = itdb_thumb_to_pixbufs (song->itdb->device, + song->artwork->thumbnail); for (it = thumbs; it != NULL; it = it->next) { GdkPixbuf *pixbuf; diff --git a/tests/test-photos.c b/tests/test-photos.c index 02ecaa3..27703ad 100644 --- a/tests/test-photos.c +++ b/tests/test-photos.c @@ -68,10 +68,8 @@ dump_thumbs (Itdb_PhotoDB *db, Itdb_Artwork *artwork, GList *it; gint i = 0; GList *thumbnails; - Itdb_Thumb_Ipod *thumb; - thumb = (Itdb_Thumb_Ipod *)artwork->thumbnail; - thumbnails = itdb_thumb_ipod_to_pixbufs (db->device, thumb); + thumbnails = itdb_thumb_to_pixbufs (db->device, artwork->thumbnail); for (it = thumbnails; it != NULL; it = it->next, i++) { gchar *filename, *path; GdkPixbuf *pixbuf; |