From 9001377df6a178d35646989b7fb093562c4a7f42 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 7 Oct 2008 23:37:15 +0000 Subject: Fix itdb_device_supports_artwork to use info from SysInfoExtended git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2138 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 5 +++++ src/itdb_device.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c52c11..65f9632 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-07 Christophe Fergeau + + * src/itdb_device.c: fix itdb_device_supports_artwork to properly + take into account data from SysInfoExtended if available + 2008-10-07 Christophe Fergeau * src/itdb_sysinfoextended_parser.c: artwork is stored in diff --git a/src/itdb_device.c b/src/itdb_device.c index 9b20f15..ac7e95c 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -1342,11 +1342,13 @@ const gchar *itdb_info_get_ipod_generation_string (Itdb_IpodGeneration generatio */ gboolean itdb_device_supports_artwork (const Itdb_Device *device) { + GList *formats; if (device == NULL) { return FALSE; } - - return (itdb_device_get_artwork_formats (device, ARTWORK_TYPE_COVER_ART) != NULL); + formats = itdb_device_get_cover_art_formats (device); + g_list_free (formats); + return (formats != NULL); } -- cgit