[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
parent
5280cd3aa3
commit
8ae271c511
|
@ -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"];
|
||||
|
|
Loading…
Reference in New Issue