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 <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-15 00:34:57 -08:00
parent f071d3e90c
commit df661dc466
1 changed files with 1 additions and 0 deletions

View File

@ -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];