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:
Christopher Snowhill 2025-03-07 20:14:29 -08:00
parent d99eda15b5
commit ff5a1c6c2c

View file

@ -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) {