From df661dc466a0bcb6e821bec52b45587c4c517ae9 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 15 Feb 2022 00:34:57 -0800 Subject: [PATCH] Fix dynamic metadata in some cases For some reason, this sometimes gets set to nil. Fix to refer to the current track in that case. Signed-off-by: Christopher Snowhill --- Application/PlaybackController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 2a93fda7c..42dca4124 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -656,6 +656,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) { - (void)audioPlayer:(AudioPlayer *)player pushInfo:(NSDictionary *)info toTrack:(id)userInfo { PlaylistEntry *pe = (PlaylistEntry *)userInfo; + if (!pe) pe = [playlistController currentEntry]; [pe setMetadata:info]; [playlistView refreshCurrentTrack:self]; [self sendMetaData];