summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r--macosx/HBPreviewController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 8cca74037..9d9d2c6fd 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -283,6 +283,7 @@ typedef enum ViewMode : NSUInteger {
[self stopMovieTimer];
}
+ [self.generator purgeImageCache];
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"PreviewWindowIsOpen"];
}
@@ -634,7 +635,7 @@ typedef enum ViewMode : NSUInteger {
{
hb_title_t *title = self.title;
- NSImage *fPreviewImage = [self.generator imageAtIndex:self.pictureIndex];
+ NSImage *fPreviewImage = [self.generator imageAtIndex:self.pictureIndex shouldCache:YES];
NSSize imageScaledSize = [fPreviewImage size];
[self.pictureLayer setContents:fPreviewImage];