diff options
author | ritsuka <[email protected]> | 2015-01-13 07:37:56 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-13 07:37:56 +0000 |
commit | 40edf3c9bce9f91fa3b5d8f422ad5df1e8ad3eb6 (patch) | |
tree | 3a9b9594c6d14f98399069591ec30c8a5597a5de /macosx/HBPreviewController.m | |
parent | 78f3a92eeb301e9896fdc59efdd3d37133984033 (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.m | 9 |
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 |