diff options
author | Damiano Galassi <[email protected]> | 2015-09-29 19:23:23 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-09-29 19:23:23 +0200 |
commit | 3a0453a7b705b9a15941eafb2997bbd18b00cfc7 (patch) | |
tree | c3f4d26275a19d092963a71af1a9b5801f63497b /macosx/HBCore.m | |
parent | 291243c3fcd34282a700b059995c27a993b12e71 (diff) |
MacGui: read the actual preview count so we don't try to load a non existing image
Diffstat (limited to 'macosx/HBCore.m')
-rw-r--r-- | macosx/HBCore.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m index 13344f8b7..7acbf3490 100644 --- a/macosx/HBCore.m +++ b/macosx/HBCore.m @@ -331,6 +331,11 @@ static void hb_error_handler(const char *errmsg) return img; } +- (NSUInteger)imagesCountForTitle:(HBTitle *)title +{ + return title.hb_title->preview_count; +} + #pragma mark - Encodes - (void)encodeJob:(HBJob *)job progressHandler:(HBCoreProgressHandler)progressHandler completionHandler:(HBCoreCompletionHandler)completionHandler; |