diff options
author | ritsuka <[email protected]> | 2014-12-27 10:46:04 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-27 10:46:04 +0000 |
commit | df8b2ff3e109699e3dadd88404911f8dfc7b210a (patch) | |
tree | 8489fee4edaf57adf55f69d0c0d28f61a5757057 /macosx/HBAudio.m | |
parent | 8df584534c0c39f5c2f298d8ba480cc906743bbf (diff) |
MacGui: change the queue to work with serialized HBJob objects, remove the NSDictionary job representation and the duplicate prepareJob method. Implement NSCopying protocol in HBJob.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudio.m')
-rw-r--r-- | macosx/HBAudio.m | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m index 6eae9a1f6..be50a51b3 100644 --- a/macosx/HBAudio.m +++ b/macosx/HBAudio.m @@ -575,6 +575,31 @@ static NSMutableArray *masterBitRateArray = nil; return retval; } +#pragma mark - NSCopying + +- (instancetype)copyWithZone:(NSZone *)zone +{ + HBAudio *copy = [[[self class] alloc] init]; + + if (copy) + { + copy->_track = [_track copy]; + copy->_codec = [_codec copy]; + copy->_mixdown = [_mixdown copy]; + copy->_sampleRate = [_sampleRate copy]; + copy->_bitRate = [_bitRate copy]; + copy->_drc = [_drc copy]; + copy->_gain = [_gain copy]; + copy->_videoContainerTag = [_videoContainerTag copy]; + + copy->_codecs = [_codecs copy]; + copy->_mixdowns = [_mixdowns copy]; + copy->_bitRates = [_bitRates copy]; + } + + return copy; +} + #pragma mark - NSCoding - (void)encodeWithCoder:(NSCoder *)coder |