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
d99eda15b5
commit
ff5a1c6c2c
1 changed files with 4 additions and 0 deletions
|
@ -170,7 +170,11 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
|
|||
}
|
||||
|
||||
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];
|
||||
resetting = NO;
|
||||
}
|
||||
|
||||
if([outputController shouldContinue] == NO) {
|
||||
|
|
Loading…
Reference in a new issue