commit dfff8d6ee4f3938ec5c0a369e0661e73e2c83ac5
Author: Adam Broschinski <adam.broschin...@gmail.com>
Date:   Sat Jun 5 13:48:58 2010 -0400

    Adds support for early stoptimes in iTunesSD
    
    I found the correct value to write into the stoptime field.

 src/itdb_itunesdb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 1324e71..5a324f9 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -6246,8 +6246,7 @@ static gboolean write_rths (WContents *cts, Itdb_Track 
*track)
        put_header (cts, "rths");
        put32lint (cts, -1); /* Length of header to be added later */
        put32lint (cts, track->starttime); /* Start pos in ms */
-       /* TODO: Find a song with nonzero stoptime */
-       put32lint (cts, track->tracklen); /* Stop pos in ms */
+       put32lint (cts, track->stoptime); /* Stop pos in ms */
        put32lint (cts, track->volume); /* Volume gain */
        put32lint (cts, convert_filetype (track->filetype)); /* Filetype see 
                                                                convert 
filetype*/

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to