From: phantomjinx <p.g...@ph...> - 2013-10-29 11:13:23
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/29/2013 09:32 AM, "Andrés G. Aragoneses" wrote: > On 29/10/13 09:02, tin...@gm... wrote: >>> BTW, if libgpod doesn't support devices from version X of iOS, shouldn't libgpod emit an >>> error (fail fast), so the consumers of the library (media players) can tell the user about >>> it, instead of fail miserably and make the user think that the media player is buggy? >> >> Yes, I also stumbled over this. The music was copied to the device but it just wasted space, >> since the iTunesDB was not properly written. > > Great, are you a libgpod dev? I'm willing to look at this specific bug, so if someone could > give me some pointer to start diving on the code? First question is: is there a reliable way to > know the iOS version that a device is running? > You'll probably want to clone the git repository at have a look at https://sourceforge.net/p/gtkpod/libgpod/ci/master/tree/src/itdb_device.c * itdb_device_get_checksum_type (1907), * called by itdb_device_write_checksum (1985) The fact that the checksum returned is ITDB_CHECKSUM_UNKNOWN could be a useful guide for error handling as well as the writing of the checksum returning false. Regards PGR - -- Paul Richardson * p.g...@ph... * p.g...@re... * pgr...@li... "I know exactly who reads the papers ... * The Daily Mirror is read by people who think they run the country. * The Guardian is read by people who think they ought to run the country. * The Times is read by people who do actually run the country. * The Daily Mail is read by the wives of the people who run the country. * The Financial Times is read by the people who own the country. * The Morning Star is read by the people who think the country ought to be run by another country. * The Daily Telegraph is read by the people who think it is." Jim Hacker, Yes Minister -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJvlSoACgkQcthLMIwdEb1XBwCg8ybuvhp1oKbij2ZbBEJlyyHH 710AmwT4G+9g++2I2zVpg7AakOqaVI6q =DRvR -----END PGP SIGNATURE----- |