summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-13 07:37:56 +0000
committerritsuka <[email protected]>2015-01-13 07:37:56 +0000
commit40edf3c9bce9f91fa3b5d8f422ad5df1e8ad3eb6 (patch)
tree3a9b9594c6d14f98399069591ec30c8a5597a5de /macosx/HBPreviewController.m
parent78f3a92eeb301e9896fdc59efdd3d37133984033 (diff)
MacGui: reorganize createMovieAsyncWithImageIndex:andDuration: method. and add an additional check before switching the preview window HUD.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6740 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r--macosx/HBPreviewController.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index b31dc255a..c64ee8e1c 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -904,10 +904,11 @@ typedef enum ViewMode : NSUInteger {
return;
self.generator.delegate = self;
- [self.generator createMovieAsyncWithImageIndex:self.pictureIndex
- andDuration:[[fPreviewMovieLengthPopUp titleOfSelectedItem] intValue]];
-
- [self switchViewToMode:ViewModeEncoding];
+ if ([self.generator createMovieAsyncWithImageIndex:self.pictureIndex
+ andDuration:[[fPreviewMovieLengthPopUp titleOfSelectedItem] intValue]])
+ {
+ [self switchViewToMode:ViewModeEncoding];
+ }
}
- (IBAction) toggleMoviePreviewPlayPause: (id) sender