From 1d4a77701848d9c22149988d7ae4ab080a138f57 Mon Sep 17 00:00:00 2001 From: Dan Leehr Date: Mon, 23 Nov 2020 16:44:44 -0500 Subject: [PATCH] Restore libFLAC plugin on macOS 10.13 and newer --- Plugins/Flac/FlacDecoder.m | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Plugins/Flac/FlacDecoder.m b/Plugins/Flac/FlacDecoder.m index 2178fd5d8..6b3d2c861 100644 --- a/Plugins/Flac/FlacDecoder.m +++ b/Plugins/Flac/FlacDecoder.m @@ -323,26 +323,12 @@ void ErrorCallback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorS + (NSArray *)fileTypes { - if (@available(macOS 10.13, *)) - { - return [NSArray array]; - } - else - { - return [NSArray arrayWithObjects:@"flac", nil]; - } + return [NSArray arrayWithObjects:@"flac", nil]; } + (NSArray *)mimeTypes { - if (@available(macOS 10.13, *)) - { - return [NSArray array]; - } - else - { - return [NSArray arrayWithObjects:@"audio/x-flac", nil]; - } + return [NSArray arrayWithObjects:@"audio/x-flac", nil]; } + (float)priority