Fixed next file won't start playing if queued on just before current one finishes

This commit is contained in:
Thong Nguyen 2014-01-25 13:59:11 +00:00
parent ca7abd75c1
commit b7f87aea98
1 changed files with 1 additions and 8 deletions

View File

@ -1792,14 +1792,7 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
next = [bufferingQueue peek];
}
if (next && next->audioStreamBasicDescription.mSampleRate == 0)
{
next = nil;
}
else
{
next = [bufferingQueue dequeue];
}
next = [bufferingQueue dequeue];
[self processFinishPlayingIfAnyAndPlayingNext:entry withNext:next];