Changeset 1026
- Timestamp:
- 10/21/07 22:12:59 (15 months ago)
- Files:
-
- 1 modified
-
trunk/AudioLibrary/AudioLibrary.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/AudioLibrary/AudioLibrary.m
r1025 r1026 835 835 836 836 while((cueSheetTrack = [enumerator nextObject])) { 837 // If the stream already exists in the library, skip it 838 AudioStream *stream = [[[CollectionManager manager] streamManager] streamForURL:[NSURL fileURLWithPath:filename] 839 startingFrame:[cueSheetTrack valueForKey:StreamStartingFrameKey] 840 frameCount:[cueSheetTrack valueForKey:StreamFrameCountKey]]; 841 if(nil != stream) 842 continue; 843 837 844 // Create a dictionary containing all applicable keys for this stream 838 845 NSMutableDictionary *values = [NSMutableDictionary dictionaryWithDictionary:[propertiesReader properties]]; … … 841 848 842 849 // Insert the object in the database 843 AudioStream *stream = [AudioStream insertStreamForURL:[NSURL fileURLWithPath:filename] withInitialValues:values];850 stream = [AudioStream insertStreamForURL:[NSURL fileURLWithPath:filename] withInitialValues:values]; 844 851 845 852 // Add the stream to the selected playlist
