From 7f7e17a4105df12229b51767ff2ed26409cad0b3 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 4 Mar 2022 02:08:55 -0800 Subject: [PATCH] Correct capitalization of WavPack in codec info Report the correct codec name for WavPack files. An info refresh will be needed for it to take effect on existing playlist entries. Signed-off-by: Christopher Snowhill --- Plugins/WavPack/WavPackDecoder.m | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Plugins/WavPack/WavPackDecoder.m b/Plugins/WavPack/WavPackDecoder.m index 0850d1a56..4f6e05fac 100644 --- a/Plugins/WavPack/WavPackDecoder.m +++ b/Plugins/WavPack/WavPackDecoder.m @@ -281,17 +281,17 @@ int32_t WriteBytesProc(void *ds, void *data, int32_t bcount) { } - (NSDictionary *)properties { - return @{@"channels": [NSNumber numberWithInt:channels], - @"channelConfig": [NSNumber numberWithUnsignedInt:channelConfig], - @"bitsPerSample": [NSNumber numberWithInt:bitsPerSample], - @"bitrate": [NSNumber numberWithInt:bitrate], - @"sampleRate": [NSNumber numberWithFloat:frequency], - @"floatingPoint": [NSNumber numberWithBool:floatingPoint], - @"totalFrames": [NSNumber numberWithDouble:totalFrames], - @"seekable": [NSNumber numberWithBool:[[wv source] seekable]], - @"codec": @"Wavpack", - @"endian": @"little", - @"encoding": isLossy ? @"lossy" : @"lossless"}; + return @{ @"channels": [NSNumber numberWithInt:channels], + @"channelConfig": [NSNumber numberWithUnsignedInt:channelConfig], + @"bitsPerSample": [NSNumber numberWithInt:bitsPerSample], + @"bitrate": [NSNumber numberWithInt:bitrate], + @"sampleRate": [NSNumber numberWithFloat:frequency], + @"floatingPoint": [NSNumber numberWithBool:floatingPoint], + @"totalFrames": [NSNumber numberWithDouble:totalFrames], + @"seekable": [NSNumber numberWithBool:[[wv source] seekable]], + @"codec": @"WavPack", + @"endian": @"little", + @"encoding": isLossy ? @"lossy" : @"lossless" }; } - (NSDictionary *)metadata {