diff options
author | dynaflash <[email protected]> | 2008-09-17 14:24:41 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-09-17 14:24:41 +0000 |
commit | ea737a42db1b3bfcc63f885b9c5fd01145006902 (patch) | |
tree | 3fe76b9b1c1484c552c01abeaf024c248bdfc5ea /macosx/Controller.mm | |
parent | ead4ea20d18daeb216c7ebed6a0bd625edbf445d (diff) |
MacGui: Fix subtitle scan which I broke in 1703
- clean up some extra activity log messages
-NOTE: As of this time chapter markers are still broken.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1707 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 8a05d6737..8e85aab68 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1791,6 +1791,7 @@ fWorkingCount = 0; /* Subtitles*/ [queueFileJob setObject:[fSubPopUp titleOfSelectedItem] forKey:@"Subtitles"]; + [queueFileJob setObject:[NSNumber numberWithInt:[fSubPopUp indexOfSelectedItem]] forKey:@"JobSubtitlesIndex"]; /* Forced Subtitles */ [queueFileJob setObject:[NSNumber numberWithInt:[fSubForcedCheck state]] forKey:@"SubtitlesForced"]; @@ -2345,8 +2346,8 @@ fWorkingCount = 0; NSMutableDictionary * queueToApply = [QueueFileArray objectAtIndex:currentQueueEncodeIndex]; [self writeToActivityLog: "processNewQueueEncode currentQueueEncodeIndex is: %d", currentQueueEncodeIndex]; job->file = [[queueToApply objectForKey:@"DestinationPath"] UTF8String]; + [self prepareJob]; - // [self writeToActivityLog: "prepareJob is over, back to processNewQueueEncode"]; if( [[queueToApply objectForKey:@"SubtitlesForced"] intValue] == 1 ) job->subtitle_force = 1; @@ -2403,6 +2404,7 @@ fWorkingCount = 0; job->pass = 1; hb_add( fQueueEncodeLibhb, job ); + job->pass = 2; job->x264opts = (char *)calloc(1024, 1); /* Fixme, this just leaks */ @@ -2416,7 +2418,6 @@ fWorkingCount = 0; else { job->indepth_scan = 0; - [self writeToActivityLog: "processNewQueueEncode is adding a single pass job"]; job->pass = 0; hb_add( fQueueEncodeLibhb, job ); @@ -2581,7 +2582,7 @@ fWorkingCount = 0; job->grayscale = [[queueToApply objectForKey:@"VideoGrayScale"] intValue]; /* Subtitle settings */ - job->subtitle = [[queueToApply objectForKey:@"Subtitles"] intValue] - 2; + job->subtitle = [[queueToApply objectForKey:@"JobSubtitlesIndex"] intValue] - 2; /* Audio tracks and mixdowns */ /* Lets make sure there arent any erroneous audio tracks in the job list, so lets make sure its empty*/ |