[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,8 +180,10 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
metaDict = _metaDict;
albumArt = _albumArt;
[self willChangeValueForKey:@"metadata"];
[self didChangeValueForKey:@"metadata"];
if(![source seekable]) {
[self willChangeValueForKey:@"metadata"];
[self didChangeValueForKey:@"metadata"];
}
}
}
}

View File

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