diff options
author | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-10-21 18:37:14 +0000 |
---|---|---|
committer | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-10-21 18:37:14 +0000 |
commit | ae2c92a16754e03d6ff9c1a35c863cb47b0027fc (patch) | |
tree | 1c7ac898c8baf087d3d15e055f061dfaa92d3eb1 | |
parent | 07ba64a08cfcdf13c538b839d59e510db52c4477 (diff) | |
download | libgpod-ae2c92a16754e03d6ff9c1a35c863cb47b0027fc.tar.gz libgpod-ae2c92a16754e03d6ff9c1a35c863cb47b0027fc.tar.xz libgpod-ae2c92a16754e03d6ff9c1a35c863cb47b0027fc.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 * |