diff options
author | Christophe Fergeau <teuf@gnome.org> | 2008-10-21 18:37:14 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2008-10-21 18:37:14 +0000 |
commit | 5e28c56e860cf219ab70991e33abacc1fce973a7 (patch) | |
tree | 1c7ac898c8baf087d3d15e055f061dfaa92d3eb1 | |
parent | f9485a7197eade38c5910977d7c4cac69cb143c1 (diff) | |
download | libgpod-5e28c56e860cf219ab70991e33abacc1fce973a7.tar.gz libgpod-5e28c56e860cf219ab70991e33abacc1fce973a7.tar.xz libgpod-5e28c56e860cf219ab70991e33abacc1fce973a7.zip |
Use SysInfoExtended if available for itdb_device_supports_photo
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2143 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/itdb_device.c | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,10 @@ 2008-10-21 Christophe Fergeau <teuf@gnome.org> + + * src/itdb_device.c: use information from SysInfoExtended to tell + if an ipod supports photos or not instead of only using the + hard-coded tables in libgpod + +2008-10-21 Christophe Fergeau <teuf@gnome.org> * src/itdb_device.c: add serial number for 16GB blue ipod nano, thanks to Thomas Pani for providing that SN. diff --git a/src/itdb_device.c b/src/itdb_device.c index 30c8bac..12c3fbc 100644 --- a/src/itdb_device.c +++ b/src/itdb_device.c @@ -1412,11 +1412,13 @@ gboolean itdb_device_supports_video (const Itdb_Device *device) gboolean itdb_device_supports_photo (const Itdb_Device *device) { + GList *formats; if (device == NULL) { return FALSE; } - - return (itdb_device_get_artwork_formats (device, ARTWORK_TYPE_PHOTO) != NULL); + formats = itdb_device_get_photo_formats (device); + g_list_free (formats); + return (formats != NULL); } static char * |