From ff56b757e6988ac0449d77d1b536c2b718a9bbe6 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 29 Jun 2022 23:26:30 -0700 Subject: [PATCH] [Play Counts] Fix reporting play counts Play counts are guaranteed to be reported on the correct track now. Signed-off-by: Christopher Snowhill --- Audio/AudioPlayer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Audio/AudioPlayer.m b/Audio/AudioPlayer.m index aa01646be..dac96f121 100644 --- a/Audio/AudioPlayer.m +++ b/Audio/AudioPlayer.m @@ -477,8 +477,8 @@ // - the buffer chain for the next playlist entry (started in endOfInputReached) have been working for some time // already, so that there is some decoded and converted data to play // - the buffer chain for the next entry is the first item in chainQueue - - [self notifyStreamChanged:[bufferChain userInfo]]; + previousUserInfo = [bufferChain userInfo]; + [self notifyStreamChanged:previousUserInfo]; } - (BOOL)chainQueueHasTracks {