Update of /cvsroot/gtkpod/libgpod/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17257/src
Modified Files: itdb_track.c Log Message: * src/itdb_track.c: (itdb_track_set_defaults) only change unk208 (audio/video) if not already set to non-zero. Index: itdb_track.c =================================================================== RCS file: /cvsroot/gtkpod/libgpod/src/itdb_track.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- itdb_track.c 5 Nov 2005 19:41:23 -0000 1.10 +++ itdb_track.c 12 Nov 2005 13:58:50 -0000 1.11 @@ -1,4 +1,4 @@ -/* Time-stamp: <2005-10-12 01:04:36 jcs> +/* Time-stamp: <2005-11-12 22:57:11 jcs> | | Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -138,21 +138,27 @@ tr->unk144 = 0x00; /* default value */ } } - if (is_video_ipod (tr->itdb->device)) { - /* The unk208 field seems to denote whether the file is a video or not. - It seems that it must be set to 0x00000002 for video files. */ - /* Only doing that for iPod videos since it remains to be proven that - * setting unk208 to non-0 doesn't upset older ipod models + if (is_video_ipod (tr->itdb->device)) + { + /* The unk208 field seems to denote whether the file is a + video or not. It seems that it must be set to 0x00000002 + for video files. */ + /* Only doing that for iPod videos since it remains to be + * proven that setting unk208 to non-0 doesn't upset older + * ipod models */ - if (haystack (tr->filetype, m4v_desc)) - { - /* set type to video (0x00000002) */ - tr->unk208 = 0x00000002; - } - else + if (tr->unk208 == 0) { - /* set type to audio */ - tr->unk208 = 0x00000001; + if (haystack (tr->filetype, m4v_desc)) + { + /* set type to video (0x00000002) */ + tr->unk208 = 0x00000002; + } + else + { + /* set type to audio */ + tr->unk208 = 0x00000001; + } } } /* The sample rate of the song expressed as an IEEE 32 bit ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ gtkpod-cvs2 mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2