summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioDefaults.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-08-15 07:39:10 +0200
committerDamiano Galassi <[email protected]>2019-08-15 07:39:10 +0200
commitba6c7ff5b3f5d4f680869727b01037dc6ab42e1e (patch)
tree014195cf7612ddddc89de892450c3237ae3e35c4 /macosx/HBAudioDefaults.m
parentc8e8231c381b03fc02f3fe8410dc851af8591ac6 (diff)
MacGui: make use of some newer NSCoding api to better report decoding failure.
Diffstat (limited to 'macosx/HBAudioDefaults.m')
-rw-r--r--macosx/HBAudioDefaults.m7
1 files changed, 2 insertions, 5 deletions
diff --git a/macosx/HBAudioDefaults.m b/macosx/HBAudioDefaults.m
index b7ec8d20d..3041927a1 100644
--- a/macosx/HBAudioDefaults.m
+++ b/macosx/HBAudioDefaults.m
@@ -474,11 +474,8 @@
goto fail;
}
- decodeCollectionOfObjects(_trackSelectionLanguages, NSMutableArray, NSString);
- if (_trackSelectionLanguages == nil) { goto fail; }
-
- decodeCollectionOfObjects(_tracksArray, NSMutableArray, HBAudioTrackPreset);
- if (_tracksArray == nil) { goto fail; }
+ decodeCollectionOfObjectsOrFail(_trackSelectionLanguages, NSMutableArray, NSString);
+ decodeCollectionOfObjectsOrFail(_tracksArray, NSMutableArray, HBAudioTrackPreset);
decodeBool(_allowAACPassthru);
decodeBool(_allowAC3Passthru);