From 8ae271c511cc7f9752e30b7700eb7bb14f989f50 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 19 Jul 2022 04:53:46 -0700 Subject: [PATCH] [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 --- Plugins/Flac/FlacDecoder.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugins/Flac/FlacDecoder.m b/Plugins/Flac/FlacDecoder.m index 537dc4397..0d2990d90 100644 --- a/Plugins/Flac/FlacDecoder.m +++ b/Plugins/Flac/FlacDecoder.m @@ -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"];