Fix for short audio files.

This commit is contained in:
vspader 2007-05-16 23:07:00 +00:00
parent 0be36644a6
commit 4e1f598ac4

View file

@ -107,7 +107,11 @@
if ([converter outputBufferSize] <= 0)
{
NSLog(@"END OF FILE?!");
if (initialBufferFilled == NO) {
[controller initialBufferFilled];
}
NSLog(@"END OF FILE?! %i %i", amountRead, amountConverted);
endOfStream = YES;
[controller endOfInputReached];
break; //eof