From 2d7c3b51c77ca47cfab46b4dd80011f947760508 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 27 Jun 2022 22:03:02 -0700 Subject: [PATCH] [Audio Output] Restart correct track When restarting playback on the current track, restart the correct track, in case restarting near the end of it. Signed-off-by: Christopher Snowhill --- Audio/AudioPlayer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/AudioPlayer.m b/Audio/AudioPlayer.m index 5bd379238..aa01646be 100644 --- a/Audio/AudioPlayer.m +++ b/Audio/AudioPlayer.m @@ -226,7 +226,7 @@ } - (void)restartPlaybackAtCurrentPosition { - [self sendDelegateMethod:@selector(audioPlayer:restartPlaybackAtCurrentPosition:) withObject:[bufferChain userInfo] waitUntilDone:NO]; + [self sendDelegateMethod:@selector(audioPlayer:restartPlaybackAtCurrentPosition:) withObject:previousUserInfo waitUntilDone:NO]; } - (void)pushInfo:(NSDictionary *)info toTrack:(id)userInfo {