diff options
author | Damiano Galassi <[email protected]> | 2019-08-15 07:39:10 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-08-15 07:39:10 +0200 |
commit | ba6c7ff5b3f5d4f680869727b01037dc6ab42e1e (patch) | |
tree | 014195cf7612ddddc89de892450c3237ae3e35c4 /macosx/HBJob.m | |
parent | c8e8231c381b03fc02f3fe8410dc851af8591ac6 (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.m | 3 |
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; } |