summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2008-10-07 23:37:15 +0000
committerChristophe Fergeau <teuf@gnome.org>2008-10-07 23:37:15 +0000
commit9001377df6a178d35646989b7fb093562c4a7f42 (patch)
tree9baba652ade38492f512ef94525a3ff43d10e26b
parent5c45b2fde79cec6276708e7068017e55d9c0ff67 (diff)
downloadlibgpod-9001377df6a178d35646989b7fb093562c4a7f42.tar.gz
libgpod-9001377df6a178d35646989b7fb093562c4a7f42.tar.xz
libgpod-9001377df6a178d35646989b7fb093562c4a7f42.zip
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
-rw-r--r--ChangeLog5
-rw-r--r--src/itdb_device.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c52c11..65f9632 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-10-07 Christophe Fergeau <teuf@gnome.org>
+ * src/itdb_device.c: fix itdb_device_supports_artwork to properly
+ take into account data from SysInfoExtended if available
+
+2008-10-07 Christophe Fergeau <teuf@gnome.org>
+
* src/itdb_sysinfoextended_parser.c: artwork is stored in <array>
nodes (which are parsed to a GValueArray), reflect that in the
SysInfoExtended parsing code.
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);
}