summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-02-12 21:08:41 +0000
committerdynaflash <[email protected]>2009-02-12 21:08:41 +0000
commit40adbd9c9ea191a7ae69dd93822090c4616855ee (patch)
tree9b5140b84f32b4245d40e1b0c9fbbc4b95850549 /macosx
parent84df360837c6c9121e0e5b0029d1085d33ff8e96 (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.mm10
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 -