[FLAC Decoder] Fix reading CUESHEET tags

It already supported reading the CUESHEET metadata block, but I managed
to break reading and processing CUESHEET Vorbis comments, which broke
CUE tagging, as well as files that didn't have both tags.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-19 04:53:46 -07:00
parent 5280cd3aa3
commit 8ae271c511
1 changed files with 3 additions and 1 deletions

View File

@ -261,8 +261,10 @@ void MetadataCallback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMeta
}
}
if(![_metaDict isEqualToDictionary:flacDecoder->metaDict]) {
if(![_metaDict isEqualToDictionary:flacDecoder->metaDict] ||
![_cuesheet isEqualToString:flacDecoder->cuesheet]) {
flacDecoder->metaDict = _metaDict;
flacDecoder->cuesheet = _cuesheet;
if(![flacDecoder->source seekable]) {
[flacDecoder willChangeValueForKey:@"metadata"];