Restore libFLAC plugin on macOS 10.13 and newer
This commit is contained in:
parent
cd84ec683e
commit
1d4a777018
1 changed files with 2 additions and 16 deletions
|
@ -323,26 +323,12 @@ void ErrorCallback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorS
|
||||||
|
|
||||||
+ (NSArray *)fileTypes
|
+ (NSArray *)fileTypes
|
||||||
{
|
{
|
||||||
if (@available(macOS 10.13, *))
|
return [NSArray arrayWithObjects:@"flac", nil];
|
||||||
{
|
|
||||||
return [NSArray array];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return [NSArray arrayWithObjects:@"flac", nil];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSArray *)mimeTypes
|
+ (NSArray *)mimeTypes
|
||||||
{
|
{
|
||||||
if (@available(macOS 10.13, *))
|
return [NSArray arrayWithObjects:@"audio/x-flac", nil];
|
||||||
{
|
|
||||||
return [NSArray array];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return [NSArray arrayWithObjects:@"audio/x-flac", nil];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (float)priority
|
+ (float)priority
|
||||||
|
|
Loading…
Reference in a new issue