diff options
author | dynaflash <[email protected]> | 2010-07-17 19:15:38 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-07-17 19:15:38 +0000 |
commit | 3c92cad4fe545eb2159cbb576c57f8e3d1ee6bb5 (patch) | |
tree | d50dbdec016ab17e85074e4871ac8ee8ad1207ab /macosx/HBQueueController.h | |
parent | b790213069b3320fe94e8de0c3301877ed57ea6b (diff) |
MacGui: Initial implementation of new queue sync code which allows multi-instance encoding.
This allows more than one instances of HandBrake.app to run off of the same queue file.
In the case of multi-instance use these changes occur in the queue window:
- The delete icon for a given queue item does not exist in the queue window if another instance is doing the encoding.
- The encoding icon does not spin if another instance is doing the encoding.
- As before if the queue window is for the instance doing the encoding on that item it will be animated and "spins".
- The queue window status readout now also includes the output file name for the file being encoded for that instance.
Known bugs:
- Drag and Drop queue reordering is somwehat borked. Doesn't corrupt queue but can not allow a drop in some instances.
- I have tested this over 20 multi instance encodes and not once had an issue, but anytime more than one instance is writing to the same external file anything can happen. Beware!
- The session activity log will of course be full of activity log info from all instances in a multi instance scenario. Individual encode logs are unaffected.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3443 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.h')
-rw-r--r-- | macosx/HBQueueController.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBQueueController.h b/macosx/HBQueueController.h index ddae3e66a..8f1268e53 100644 --- a/macosx/HBQueueController.h +++ b/macosx/HBQueueController.h @@ -53,8 +53,9 @@ BOOL fIsDragging; hb_handle_t *fQueueEncodeLibhb; // reference to libhb HBController *fHBController; // reference to HBController NSMutableArray *fJobGroups; // mirror image of the queue array from controller.mm - - int fEncodingQueueItem; // corresponds to the index of fJobGroups encoding item + + int pidNum; // Records the PID number from HBController for this instance + int fEncodingQueueItem; // corresponds to the index of fJobGroups encoding item int fPendingCount; // Number of various kinds of job groups in fJobGroups. int fCompletedCount; int fCanceledCount; @@ -106,7 +107,6 @@ BOOL fIsDragging; #endif } - - (void)setHandle: (hb_handle_t *)handle; - (void)setHBController: (HBController *)controller; |