Bug fix for cue sheet changes.

This commit is contained in:
vspader 2008-05-01 23:34:23 +00:00
parent 03ad906fb4
commit c78a553532

View file

@ -46,9 +46,15 @@
NSLog(@"Opening with old decoder: %@", d);
decoder = d;
[decoder retain];
NSDictionary *properties = [decoder properties];
int bitsPerSample = [[properties objectForKey:@"bitsPerSample"] intValue];
int channels = [[properties objectForKey:@"channels"] intValue];
bytesPerFrame = (bitsPerSample/8) * channels;
[self registerObservers];
shouldContinue = YES;
shouldSeek = NO;