diff options
| author | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2005-09-22 18:16:50 +0000 |
|---|---|---|
| committer | jcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2005-09-22 18:16:50 +0000 |
| commit | da83c8e68edfca1b740b95fe045b5bd32c8ab56d (patch) | |
| tree | dd5f9c7eb78249d02e1a80a8a7447c2bcc0fd4c9 /src/itdb_itunesdb.c | |
| parent | f3ffd45a6e75de502d9c1e913d7b701fef725d34 (diff) | |
* applied Christophe Fergeau's patch which adds cover art writing
support to libgpod -> bump to version 104
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1098 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_itunesdb.c')
| -rw-r--r-- | src/itdb_itunesdb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 7b034ee..e8eacc3 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -898,6 +898,7 @@ Itdb_iTunesDB *itdb_new (void) itdb->version = 0x09; itdb->id = ((guint64)g_rand_int (grand) << 32) | ((guint64)g_rand_int (grand)); + g_rand_free (grand); return itdb; } @@ -3301,6 +3302,14 @@ gboolean itdb_write (Itdb_iTunesDB *itdb, const gchar *mp, GError **error) if (!mp) mp = itdb->mountpoint; + /* First, let's try to write the .ithmb files containing the artwork data + * since this operation modifies the 'artwork_count' and 'artwork_size' + * field in the Itdb_Track contained in the database. + * Errors happening during that operation are considered non fatal since + * they shouldn't corrupt the main database. + */ + ipod_write_artwork_db (itdb, mp); + itunes_path = itdb_resolve_path (mp, db); if(!itunes_path) |
