Bug Fix: Prevent hangs when starting paused
This happens when the player is resumed paused, sometimes near the end of a track. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
fd57ed12bb
commit
fab4d3705e
1 changed files with 4 additions and 0 deletions
|
@ -170,7 +170,11 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!started && !paused) {
|
if(!started && !paused) {
|
||||||
|
// Prevent this call from hanging when used in this thread, when buffer may be empty
|
||||||
|
// and waiting for this very thread to fill it
|
||||||
|
resetting = YES;
|
||||||
[self resume];
|
[self resume];
|
||||||
|
resetting = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
if([outputController shouldContinue] == NO) {
|
if([outputController shouldContinue] == NO) {
|
||||||
|
|
Loading…
Reference in a new issue