diff options
author | ritsuka <[email protected]> | 2015-01-19 08:48:18 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-19 08:48:18 +0000 |
commit | f69f4e15cf1a4e010aef3f1a77c768425562cc67 (patch) | |
tree | 711364237b9eef8a3e8fa90f2ace9d8b02c82a0e /macosx/HBJob.m | |
parent | 889e86edd3289486cd2cd1d6abc4e21296983dad (diff) |
MacGui: moved the queue code from HBController to HBQueueController, reworked the way the queue synchronise itself between multiple instances to be more resilient (hopefully). Modified HBCore to take callback blocks instead of notifications.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6770 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r-- | macosx/HBJob.m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m index d23bb6039..c55e99fa8 100644 --- a/macosx/HBJob.m +++ b/macosx/HBJob.m @@ -44,6 +44,8 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio _chapterTitles = [title.chapters mutableCopy]; + _uuid = [[[NSUUID UUID] UUIDString] retain]; + [self applyPreset:preset]; } @@ -142,6 +144,8 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio [_chapterTitles release]; + [_uuid release]; + [super dealloc]; } @@ -156,7 +160,7 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio copy->_state = HBJobStateReady; copy->_presetName = [_presetName copy]; copy->_titleIdx = _titleIdx; - copy->_pidId = _pidId; + copy->_uuid = [[[NSUUID UUID] UUIDString] retain]; copy->_fileURL = [_fileURL copy]; copy->_destURL = [_destURL copy]; @@ -192,7 +196,7 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio encodeInt(_state); encodeObject(_presetName); encodeInt(_titleIdx); - encodeInt(_pidId); + encodeObject(_uuid); encodeObject(_fileURL); encodeObject(_destURL); @@ -221,7 +225,7 @@ NSString *HBContainerChangedNotification = @"HBContainerChangedNotificatio decodeInt(_state); decodeObject(_presetName); decodeInt(_titleIdx); - decodeInt(_pidId); + decodeObject(_uuid); decodeObject(_fileURL); decodeObject(_destURL); |