summaryrefslogtreecommitdiffstats
path: root/src/itdb_track.c
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-03-23 15:06:32 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-03-23 15:06:32 +0000
commita9c6259ba25b90159b1172e2d311ac22265f28ee (patch)
tree405f62eac144bf39a2acb281f474b0ccf531f22c /src/itdb_track.c
parentff171997e60826a2c45913360af15fba56acf0ac (diff)
downloadlibgpod-a9c6259ba25b90159b1172e2d311ac22265f28ee.tar.gz
libgpod-a9c6259ba25b90159b1172e2d311ac22265f28ee.tar.xz
libgpod-a9c6259ba25b90159b1172e2d311ac22265f28ee.zip
Alpha version of reversed-endian Artwork writing. Status: iTunesDB
can be written and is accepted on mobile phones, ArtworkDB can be read and be written as well, but newly added artwork will not yet display. * itdb.h: adjusted a couple of field lengths (4 byte -> 2 byte or even 1 byte) to address endian issues. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1225 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb_track.c')
-rw-r--r--src/itdb_track.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/itdb_track.c b/src/itdb_track.c
index c85e207..9f051a9 100644
--- a/src/itdb_track.c
+++ b/src/itdb_track.c
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-03-15 00:11:15 jcs>
+/* Time-stamp: <2006-03-23 23:30:34 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -123,26 +123,26 @@ static void itdb_track_set_defaults (Itdb_Track *tr)
{
if (haystack (tr->filetype, mp3_desc))
{
- tr->unk144 = 0x0000000c;
+ tr->unk144 = 0x000c;
}
else if (haystack (tr->filetype, mp4_desc))
{
if (haystack (tr->filetype, audible_subdesc))
{
- tr->unk144 = 0x01000029;
+ tr->unk144 = 0x0029;
}
else
{
- tr->unk144 = 0x01000033;
+ tr->unk144 = 0x0033;
}
}
else if (haystack (tr->filetype, wav_desc))
{
- tr->unk144 = 0x00;
+ tr->unk144 = 0x0000;
}
else
{
- tr->unk144 = 0x00; /* default value */
+ tr->unk144 = 0x0000; /* default value */
}
}
if (is_video_ipod (tr->itdb->device))