diff options
author | ritsuka <[email protected]> | 2015-01-26 08:30:23 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-26 08:30:23 +0000 |
commit | de6e8f85686ad3f63be7fba7b4bf10aa1912a09a (patch) | |
tree | aa4a061b01b810e38a6d3af245a2380aceb58839 /macosx/HBPreviewController.m | |
parent | 9545f5c9b6c3160b0e6cba9344232cb9e1493aaf (diff) |
MacGui: add a method to return a CGImageRef for a preview in HBCore, and skip the alpha to use less memory. Use a dispatch_source as a timer in HBCore so we will be able to run the update loop on its own thread. Remove the pointer to hb_handle_t, no class outside HBCore uses it.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6816 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index b139fa25d..31ac1c3f6 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -676,8 +676,8 @@ typedef enum ViewMode : NSUInteger { { if (self.window.isVisible) { - NSImage *fPreviewImage = [self.generator imageAtIndex:self.pictureIndex shouldCache:YES]; - [self.pictureLayer setContents:fPreviewImage]; + CGImageRef fPreviewImage = [self.generator imageAtIndex:self.pictureIndex shouldCache:YES]; + [self.pictureLayer setContents:(id)fPreviewImage]; } HBPicture *pict = self.job.picture; |