diff options
author | ritsuka <[email protected]> | 2014-08-25 15:56:57 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-08-25 15:56:57 +0000 |
commit | 7f5f9fa934bf1e5afb7567badf40147c28594ff6 (patch) | |
tree | 67d9d7b861c6b1e0544822ceebae738a2d6a294e /macosx/HBQueueController.mm | |
parent | 68f946e7ea88e2393338716d36a90d36dc1337fb (diff) |
MacGui: store the audio and subtitles defaults in each queue item so they can be loaded back from the queue.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6360 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.mm')
-rw-r--r-- | macosx/HBQueueController.mm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index 42894a533..33510e524 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -1028,12 +1028,13 @@ if (autoPassthruPresent == YES) { NSString *autoPassthruFallback = @"", *autoPassthruCodecs = @""; - autoPassthruFallback = [autoPassthruFallback stringByAppendingString: item[@"AudioEncoderFallback"]]; - if (0 < [item[@"AudioAllowAACPass"] intValue]) + NSDictionary *audioDefaults = item[@"AudioDefaults"]; + autoPassthruFallback = [autoPassthruFallback stringByAppendingString: audioDefaults[@"AudioEncoderFallback"]]; + if (0 < [audioDefaults[@"AudioAllowAACPass"] intValue]) { autoPassthruCodecs = [autoPassthruCodecs stringByAppendingString: @"AAC"]; } - if (0 < [item[@"AudioAllowAC3Pass"] intValue]) + if (0 < [audioDefaults[@"AudioAllowAC3Pass"] intValue]) { if (0 < [autoPassthruCodecs length]) { @@ -1041,7 +1042,7 @@ } autoPassthruCodecs = [autoPassthruCodecs stringByAppendingString: @"AC3"]; } - if (0 < [item[@"AudioAllowDTSHDPass"] intValue]) + if (0 < [audioDefaults[@"AudioAllowDTSHDPass"] intValue]) { if (0 < [autoPassthruCodecs length]) { @@ -1049,7 +1050,7 @@ } autoPassthruCodecs = [autoPassthruCodecs stringByAppendingString: @"DTS-HD"]; } - if (0 < [item[@"AudioAllowDTSPass"] intValue]) + if (0 < [audioDefaults[@"AudioAllowDTSPass"] intValue]) { if (0 < [autoPassthruCodecs length]) { @@ -1057,7 +1058,7 @@ } autoPassthruCodecs = [autoPassthruCodecs stringByAppendingString: @"DTS"]; } - if (0 < [item[@"AudioAllowMP3Pass"] intValue]) + if (0 < [audioDefaults[@"AudioAllowMP3Pass"] intValue]) { if (0 < [autoPassthruCodecs length]) { |