Bug fix for cue sheet changes.

CQTexperiment
vspader 2008-05-01 23:34:23 +00:00
parent 03ad906fb4
commit c78a553532
1 changed files with 7 additions and 1 deletions

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;