summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob.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/HBJob.m
parentc8e8231c381b03fc02f3fe8410dc851af8591ac6 (diff)
MacGui: make use of some newer NSCoding api to better report decoding failure.
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r--macosx/HBJob.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index 9bf41c49a..bde7ffa2e 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -481,8 +481,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
_video.job = self;
decodeBool(_chaptersEnabled);
- decodeCollectionOfObjects(_chapterTitles, NSArray, HBChapter);
- if (_chapterTitles == nil) { goto fail; }
+ decodeCollectionOfObjectsOrFail(_chapterTitles, NSArray, HBChapter);
return self;
}