r1082 - trunk/Audio/Properties

0 views
Skip to first unread message

noti...@svn.sbooth.org

unread,
Mar 11, 2009, 6:29:47 PM3/11/09
to play-c...@googlegroups.com
Author: stephen_booth
Date: 2009-03-11 15:29:46 -0700 (Wed, 11 Mar 2009)
New Revision: 1082

Modified:
trunk/Audio/Properties/FLACPropertiesReader.m
Log:
Don't read lead-out as a track

Modified: trunk/Audio/Properties/FLACPropertiesReader.m
===================================================================
--- trunk/Audio/Properties/FLACPropertiesReader.m 2008-07-22 18:17:15 UTC (rev 1081)
+++ trunk/Audio/Properties/FLACPropertiesReader.m 2009-03-11 22:29:46 UTC (rev 1082)
@@ -153,7 +153,9 @@
[trackDictionary setValue:[NSNumber numberWithUnsignedInt:frameCount] forKey:StreamFrameCountKey];
}

- [cueSheetTracks addObject:trackDictionary];
+ // Don't add the lead-out as a track
+ if(1 <= block->data.cue_sheet.tracks[i].number && 99 >= block->data.cue_sheet.tracks[i].number)
+ [cueSheetTracks addObject:trackDictionary];
}
}

Reply all
Reply to author
Forward
0 new messages