From 0dee6e05ab1c13eaa5b545713a51911b9258ca14 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 14 Feb 2025 19:07:31 -0800 Subject: [PATCH] Opus: Boost priority of libopusfile decoder This should take priority over the Core Audio and FFmpeg decoders. Signed-off-by: Christopher Snowhill --- Plugins/Opus/Opus/OpusDecoder.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Opus/Opus/OpusDecoder.m b/Plugins/Opus/Opus/OpusDecoder.m index 8a8d97464..fdcf1732f 100644 --- a/Plugins/Opus/Opus/OpusDecoder.m +++ b/Plugins/Opus/Opus/OpusDecoder.m @@ -348,8 +348,9 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va return @[@"audio/x-opus+ogg", @"application/ogg"]; } +// We want this to take priority over both Core Audio and FFmpeg + (float)priority { - return 1.0; + return 2.0; } + (NSArray *)fileTypeAssociations {