Do not try to open unsupported file versions.

This commit is contained in:
Damiano Galassi committed 2017-10-03 08:02:00 +02:00
1 parent 1c8662d291
commit b42ac4ae14
4 files changed
+42 -28

No files matched your search

+6 -4
View File
@@ -276,12 +276,14 @@
{
self = [super initWithCoder:decoder];
_volume = [decoder decodeFloatForKey:@"volume"];
if (self) {
_volume = [decoder decodeFloatForKey:@"volume"];
_channels = [decoder decodeInt64ForKey:@"channels"];
_channelLayoutTag = [decoder decodeInt64ForKey:@"channelLayoutTag"];
_channels = [decoder decodeInt64ForKey:@"channels"];
_channelLayoutTag = [decoder decodeInt64ForKey:@"channelLayoutTag"];
_fallbackTrackId = [decoder decodeInt64ForKey:@"fallbackTrackId"];
_fallbackTrackId = [decoder decodeInt64ForKey:@"fallbackTrackId"];
}
return self;
}