]> granicus.if.org Git - handbrake/commitdiff
MacGui: do not set the same value twice in the job dict (ChapterStart/ChapterEnd).
authorritsuka <damiog@gmail.com>
Sun, 2 Nov 2014 15:46:58 +0000 (15:46 +0000)
committerritsuka <damiog@gmail.com>
Sun, 2 Nov 2014 15:46:58 +0000 (15:46 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6499 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.m

index 7bc285fe347f5d95e60fb836a5224f79cf16205b..a32f71cf4c37061aa796bb8016e1e39b739e3ae5 100644 (file)
@@ -2559,12 +2559,6 @@ fWorkingCount = 0;
     [subtitlesArray release];
 
     /* Now we go ahead and set the "job->values in the plist for passing right to fQueueEncodeLibhb */
-     
-    [queueFileJob setObject:[NSNumber numberWithInteger:[fSrcChapterStartPopUp indexOfSelectedItem] + 1] forKey:@"JobChapterStart"];
-    
-    [queueFileJob setObject:[NSNumber numberWithInteger:[fSrcChapterEndPopUp indexOfSelectedItem] + 1] forKey:@"JobChapterEnd"];
-    
-    
     [queueFileJob setObject:[NSNumber numberWithInteger:[[fDstFormatPopUp selectedItem] tag]] forKey:@"JobFileFormatMux"];
     
     /* Codecs */
@@ -3306,8 +3300,8 @@ fWorkingCount = 0;
     {
         /* Chapter selection */
         [HBUtilities writeToActivityLog: "Start / Stop set to chapters"];
-        job->chapter_start = [[queueToApply objectForKey:@"JobChapterStart"] intValue];
-        job->chapter_end   = [[queueToApply objectForKey:@"JobChapterEnd"] intValue];
+        job->chapter_start = [[queueToApply objectForKey:@"ChapterStart"] intValue];
+        job->chapter_end   = [[queueToApply objectForKey:@"ChapterEnd"] intValue];
     }
     else if ([[queueToApply objectForKey:@"fEncodeStartStop"] intValue] == 1)
     {