diff options
author | Damiano Galassi <[email protected]> | 2020-12-01 10:53:37 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-12-01 10:53:37 +0100 |
commit | feaf9d2f8074673ea95e26c038752316f9bf5bc9 (patch) | |
tree | cece86fc174bb10df346348928d150f9263301c1 /macosx | |
parent | 2ca52fc22d7cff67d847b374967f4c49d9874943 (diff) |
MacGui: start encoding when a job is added to the queu if a job is already encoding and there is a free worker.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBQueue.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBQueue.m b/macosx/HBQueue.m index 641c20d5d..19f568e41 100644 --- a/macosx/HBQueue.m +++ b/macosx/HBQueue.m @@ -205,6 +205,11 @@ NSString * const HBQueueItemNotificationItemKey = @"HBQueueItemNotificationItemK { NSIndexSet *indexes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(self.itemsInternal.count, itemsToAdd.count)]; [self addItems:itemsToAdd atIndexes:indexes]; + + if (self.isEncoding && self.countOfEncodings < self.workersCount) + { + [self encodeNextQueueItem]; + } } } |