summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Adapt artwork debugging code to the mhod string parsing consolidationChristophe Fergeau2008-02-033-32/+20
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1948 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Factorize mhod_type_3 and mhod_type_1 handlingChristophe Fergeau2008-02-035-74/+93
| | | | | | | | | | MHOD in an ArtworkDB can only have 2 types, either they contain a string or they are some kind of container. The code had an arbitrary separation between mhod type 3 and mhod type 1 which both contained strings. This consolidates that code in a parse_mhod_string function git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1947 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add comment about fields that aren't byteswapped, remove hardcoded intChristophe Fergeau2008-02-033-5/+14
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1946 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Merge ArtworkDB_MhodHeaderArtworkType3 and MhodHeaderArtworkType1 into ↵Christophe Fergeau2008-02-034-67/+39
| | | | | | ArtworkDB_MhodHeaderString git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1945 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix potential memory leaksChristophe Fergeau2008-02-022-0/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1944 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Make sure the fields we print aren't NULLChristophe Fergeau2008-01-292-1/+11
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1943 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Make sure we use '/' in filenames on ipod shufflesChristophe Fergeau2008-01-292-2/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1942 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add and use itdb_file_set_contents to workaround a rename issue on sshfsChristophe Fergeau2008-01-294-41/+66
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1941 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Portability fix: only include unistd.h when it's availableChristophe Fergeau2008-01-296-1/+22
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1940 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Rework itdb_cp for MacOSX/Windows portabilityChristophe Fergeau2008-01-292-25/+33
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1939 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* src/itdb_chapterdata.c: file missed being added in previous checkinMichael Tiffany2008-01-262-1/+239
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1937 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_track.cJorg Schuler2008-01-265-40/+164
| | | | | | | | | | | * src/itdb_itunesdb.c * src/itdb_chapterdata * src/itdb.h * src/Makefile.am: applied chapterdata patch by Michael Tiffany. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1936 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix ITDB_THUMB_PHOTO_FULL_SCREEN format onChristophe Fergeau2008-01-022-1/+7
| | | | | | | | ipod classic and nano video, thanks to Tomas Carnecky for pointing that out git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1898 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* add ACLOCAL_AMFLAGS to fix some autoreconf issues (thanks to Frank ↵Todd Zullinger2007-12-132-0/+7
| | | | | | Lichtenheld at Debian) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1828 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* conditionally add gdk-pixbuf to pkg-config RequiresTodd Zullinger2007-11-263-14/+38
| | | | | | | | exit with an error if gdk-pixbuf or pygobject are explicitly requested and not found add AM_PROG_CC_C_O to make automake happy about per-target flags in tests/Makefile.am git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1804 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* update svn:ignoreTodd Zullinger2007-11-250-0/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1803 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* setup svn:ignore for the tools dirTodd Zullinger2007-11-250-0/+0
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1802 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* pass any user-specified options to configureTodd Zullinger2007-11-252-1/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1801 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fixed date.Jorg Schuler2007-11-171-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1796 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Got rid of timestamp.Jorg Schuler2007-11-171-2/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1795 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_playlist.c (itdb_splr_eval): track length in rules forJorg Schuler2007-11-172-2/+14
| | | | | | | | | | | | | | | smart playlists was treated as seconds, but the iPod treats them as milliseconds. If you told libgpod to create a smart playlist with tracks less than 100 secs in length, but the life update of the iPod would interpret that rule as "tracks less than 100 msec in length", giving a vastly different result. Tested with iPod Nano 1G and iPod nano Video (3G). Requires corresponding fix in GUIs using this function. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1794 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix typoes in iPod Touch model listsChristophe Fergeau2007-11-162-2/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1792 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: use libgpod as the prefix of music files toChristophe Fergeau2007-11-142-2/+7
| | | | | | | be copied to the ipod instead of gtkpod git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1790 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: get rid of local g_mkdir_with_parents copyChristophe Fergeau2007-11-142-87/+16
| | | | | | | | since we now depend on glib 2.8 which have it. Replace mkdir with g_mkdir git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1788 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: ignore invalid UTF-8 paths which might haveChristophe Fergeau2007-11-142-3/+15
| | | | | | | been added to the iPod by the user git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1786 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c: use g_list_remove all instead of anChristophe Fergeau2007-11-142-4/+6
| | | | | | | inefficient combination of g_list_find + g_list_remove git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1783 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c (itdb_photodb_photoalbum_remove): makeJorg Schuler2007-11-142-19/+16
| | | | | | | | | sure same photo isn't freed multiple times if it was added in an album multiple times. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1782 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c: fix bug in itdb_photodb_photoalbum_remove,Christophe Fergeau2007-11-132-1/+18
| | | | | | | | | when removing all the photos from the photodatabase, we were erasing elements and iterating over the list at the same time, which resulted in the function not working properly git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1778 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Mark release 0.6.0 in the ChangeLogChristophe Fergeau2007-11-101-0/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1773 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: use the same photo thumbnail definitions forJorg Schuler2007-11-102-12/+7
| | | | | | | | | the iPhone as well as the iPod Touch until further input is received. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1772 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * Makefile.am: add README.SysInfo to EXTRADISTChristophe Fergeau2007-11-102-0/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1771 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * NEWS: update for 0.6.0 releaseChristophe Fergeau2007-11-103-4/+72
| | | | | | | * README.SysInfo: explain how to get the firewire id from an iPod Touch git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1770 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: added photo thumbnail definitions for iPodJorg Schuler2007-11-102-1/+19
| | | | | | | | | Touch. I'm not sure how reasonable the "PHOTO_LARGE, _FULL_SCREEN, _TV_SCREEN" classification is, however... git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1769 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.c (parse_mhba): fix double g_free on mhbaJorg Schuler2007-11-102-16/+37
| | | | | | | | | | chunks with multiple mhods. Currently only mhods of type 1 are handled, the rest (type 2: image transition style) are being discarded. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1768 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-parse-context.c (db_parse_context_get_m_header_internal):Jorg Schuler2007-11-092-0/+7
| | | | | | | | fixed memory leak. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1767 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: (itdb_device_requires_checksum): the iPod TouchChristophe Fergeau2007-11-082-1/+6
| | | | | | | needs a firewire id as well git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1764 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tools/hal-callout.c: (mount_ipod): use g_get_tmp_dir instead ofChristophe Fergeau2007-11-082-2/+6
| | | | | | | hardcoding /tmp git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1763 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tools/hal-callout.c (mount_ipod): fix bug that preventedJorg Schuler2007-11-073-2/+44
| | | | | | | | | | | | | creation of the SysInfoExtended file if it hadn't already existed. Add copyright header. * tools/ipod-scsi-inquiry.c: added project name to the copyright header. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1762 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: raise version number and soname in preparation for aChristophe Fergeau2007-11-062-4/+9
| | | | | | | 0.6.0 release git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1761 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac:Christophe Fergeau2007-11-067-75/+291
| | | | | | | | | | | | | * tools/20-libgpod-sysinfo-extended.fdi: * tools/Makefile.am: * tools/hal-callout.c: * tools/ipod-scsi-inquiry.c: * tools/read-sysinfoextended-sgutils.c: add hal callout which automatically write SysinfoExtended to iPods when they are plugged if it's properly installed git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1760 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * itdb_itunesdb.c (itdb_create_directories): Add support forJorg Schuler2007-11-062-0/+10
| | | | | | | | iPod Touch (wrong directories were created). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1759 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * itdb_itunesdb.c (itdb_create_directories): Add support forJorg Schuler2007-11-042-0/+9
| | | | | | | | | iPhones (wrong directories were created). Thanks to Jesse Bouwman for the patch. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1754 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Added support for video output of photos for iPod Nano Videos andJorg Schuler2007-11-047-90/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iPod Classics. * src/ithumb-writer.c (pack_I420): added packer for iPod Nano Video and iPod Classic TV output photo format. (itdb_write_ithumb_files): make sure only valid thumbnail types are written. * src/db-image-parser.h: added declaration for itdb_thumb_type_is_valid_for_db() * src/itdb_photoalbum.c (itdb_photodb_add_photo_internal): make sure only photo thumbnails are added. * src/db-artwork-writer.c (write_mhii): correctly skip unneeded thumbnails (thumbnails not relevant for the current iPod type). (should_write): renamed to itdb_thumb_type_is_valid_for_db() src/itdb.h src/itdb_artwork.c: minor formatting. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1753 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Additional clean-ups after the glib requirement bumping pointed out byChristophe Fergeau2007-10-3010-70/+21
| | | | | | | | | | | | | | | | | tmz on IRC * libgpod-1.0.pc.in: bump glib requirement there as well * src/Makefile.am: * src/db-parse-context.c: * src/glib-compat.h: * src/itdb_artwork.c: * src/itdb_itunesdb.c: * src/itdb_photoalbum.c: * src/itdb_private.h: * src/ithumb-writer.c: get rid of glib-compat.h since we raised the minimum version to 2.8 git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1749 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-292-2/+8
| | | | | | | * src/db-artwork-debug.c: (dump_mhni): another endianness fix git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1748 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_artwork.c:Christophe Fergeau2007-10-293-3/+9
| | | | | | | | * src/ithumb-writer.c: replace // comments with /* */ pairs, fixes compilation on my machine git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1747 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-295-5/+77
| | | | | | | | | | * src/itdb_artwork.c: add I420 unpacker * src/itdb_device.c: iPod classic full screen photo format is I420 * src/itdb_device.h: add I420 format * src/ithumb-writer.c: add stub for an I420 packer git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1746 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: the iPod Touch probably uses the same image formatChristophe Fergeau2007-10-292-1/+6
| | | | | | | as the iPhone git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1745 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: raise glib requirement to 2.8 (because ofChristophe Fergeau2007-10-292-1/+6
| | | | | | | g_file_set_contents) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1744 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: remove mremap checkChristophe Fergeau2007-10-293-169/+74
| | | | | | | * src/db-artwork-writer.c: get rid mmap/mremap use git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1743 f01d2545-417e-4e96-918e-98f8d0dbbcb6