[Ogg Vorbis/Opus] Fix tag clobber on play

Fixed the tags being overwritten by an "update" on non-streaming files.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-13 00:12:35 -07:00
parent 8c4f9a7123
commit 29dfe593f1
2 changed files with 8 additions and 4 deletions

View File

@ -180,11 +180,13 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
metaDict = _metaDict;
albumArt = _albumArt;
if(![source seekable]) {
[self willChangeValueForKey:@"metadata"];
[self didChangeValueForKey:@"metadata"];
}
}
}
}
- (void)updateIcyMetadata {
if([source seekable]) return;

View File

@ -157,11 +157,13 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
metaDict = _metaDict;
albumArt = _albumArt;
if(![source seekable]) {
[self willChangeValueForKey:@"metadata"];
[self didChangeValueForKey:@"metadata"];
}
}
}
}
- (void)updateIcyMetadata {
if([source seekable]) return;