summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-19 09:03:29 +0000
committerritsuka <[email protected]>2015-01-19 09:03:29 +0000
commitea82134f6199f79cb939781cb38dceaa1534dbc1 (patch)
tree7e1ae99de08481a8e47eb4ca75f003235c6af49d /macosx/HBCore.m
parentf69f4e15cf1a4e010aef3f1a77c768425562cc67 (diff)
MacGui: remove startProgressHandler:completationHandler: method in HBCore. Switched HBPreviewGenerator to encodeJob: .
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6771 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBCore.m')
-rw-r--r--macosx/HBCore.m21
1 files changed, 8 insertions, 13 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m
index 05871bbbc..f516e9916 100644
--- a/macosx/HBCore.m
+++ b/macosx/HBCore.m
@@ -226,6 +226,13 @@
- (void)encodeJob:(HBJob *)job progressHandler:(HBCoreProgressHandler)progressHandler completationHandler:(HBCoreCompletationHandler)completationHandler;
{
+ // Copy the progress/completation blocks
+ self.progressHandler = progressHandler;
+ self.completationHandler = completationHandler;
+
+ // Start the timer to handle libhb state changes
+ [self startUpdateTimerWithInterval:0.5];
+
// Add the job to libhb
hb_job_t *hb_job = job.hb_job;
hb_job_set_file(hb_job, job.destURL.path.fileSystemRepresentation);
@@ -234,18 +241,6 @@
// Free the job
hb_job_close(&hb_job);
- [self startProgressHandler:progressHandler completationHandler:completationHandler];
-}
-
-- (void)startProgressHandler:(HBCoreProgressHandler)progressHandler completationHandler:(HBCoreCompletationHandler)completationHandler;
-{
- // Copy the progress/completation blocks
- self.progressHandler = progressHandler;
- self.completationHandler = completationHandler;
-
- // Start the timer to handle libhb state changes
- [self startUpdateTimerWithInterval:0.5];
-
hb_system_sleep_prevent(_hb_handle);
hb_start(_hb_handle);
@@ -254,7 +249,7 @@
// waiting for libhb to set it in a background thread.
self.state = HBStateWorking;
- [HBUtilities writeToActivityLog:"%s work started", self.name.UTF8String];
+ [HBUtilities writeToActivityLog:"%s started encoding %s", self.name.UTF8String, job.destURL.lastPathComponent.UTF8String];
}
- (BOOL)workDone