OSDN Git Service

Put the correct subtitle language in the Queue for the Mac GUI.
authoreddyg <eddyg@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 22 Jan 2008 01:47:52 +0000 (01:47 +0000)
committereddyg <eddyg@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 22 Jan 2008 01:47:52 +0000 (01:47 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1220 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBQueueController.mm

index 75095af..81da938 100644 (file)
@@ -156,7 +156,7 @@ static NSDictionary* _shortHeightAttribute = NULL;
         titleHeight = job->title->height;
         if (job->subtitle >= 0)
         {
-            hb_subtitle_t * aSubtitle = (hb_subtitle_t *) hb_list_item(job->title->list_subtitle, 0);
+            hb_subtitle_t * aSubtitle = (hb_subtitle_t *) hb_list_item(job->title->list_subtitle, job->subtitle);
             if (aSubtitle)
                 subtitleLang = [[NSString stringWithUTF8String:aSubtitle->lang] retain];
         }
@@ -508,7 +508,7 @@ static NSDictionary* _shortHeightAttribute = NULL;
     
     if (withSubtitleInfo)
     {
-        // subtitle can == -1 in two cases:
+        // subtitle scan == -1 in two cases:
         // autoselect: when pass == -1
         // none: when pass != -1
         if ((subtitle == -1) && (pass == -1))