diff options
author | dynaflash <[email protected]> | 2009-02-12 21:08:41 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2009-02-12 21:08:41 +0000 |
commit | 40adbd9c9ea191a7ae69dd93822090c4616855ee (patch) | |
tree | 9b5140b84f32b4245d40e1b0c9fbbc4b95850549 /macosx | |
parent | 84df360837c6c9121e0e5b0029d1085d33ff8e96 (diff) |
MacGui: Queue -Stop animating currently encoding job icon when paused, restart animation upon resume.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2151 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBQueueController.mm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index 822c3124f..aa5e55a8c 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -582,14 +582,20 @@ static NSString* HBQueuePauseResumeToolbarIdentifier = @"HBQueuePauseRe - (IBAction)togglePauseResume: (id)sender { if (!fQueueEncodeLibhb) return; - + hb_state_t s; hb_get_state2 (fQueueEncodeLibhb, &s); - + if (s.state == HB_STATE_PAUSED) + { hb_resume (fQueueEncodeLibhb); + [self startAnimatingCurrentWorkingEncodeInQueue]; + } else if ((s.state == HB_STATE_WORKING) || (s.state == HB_STATE_MUXING)) + { hb_pause (fQueueEncodeLibhb); + [self stopAnimatingCurrentJobGroupInQueue]; + } } #pragma mark - |