Cog Audio: Only proceed to the next track when the current track has actually finished
parent
5fef62dd03
commit
b0f5a37e85
|
@ -60,7 +60,7 @@
|
|||
n = [super readData:ptr amount:amount];
|
||||
amountPlayed += n;
|
||||
|
||||
if (endOfStream == YES)
|
||||
if (endOfStream == YES && !n)
|
||||
{
|
||||
amountPlayed = 0;
|
||||
[controller endOfInputPlayed]; //Updates shouldContinue appropriately?
|
||||
|
|
Loading…
Reference in New Issue